<?xml version="1.0" encoding="UTF-8" ?>
<DataIntegratorExport repositoryVersion="12.2.2.0000" productVersion="12.2.3.2">
<DIDatabaseDatastore name="DW_DS" typeId="3" >
<DIAttributes>
<DIAttribute name="DBLiveLoad" value="no"/>
<DIAttribute name="application_type" value="Custom"/>
<DIAttribute name="cdc_enabled" value="no"/>
<DIAttribute name="datastore_repotype" value="local"/>
<DIAttribute name="ds_configuration_enabled" value="yes"/>
<DIAttribute name="ds_configurations" hasNestedXMLTree ="true">

<DSConfigurations>
<DSConfiguration default="true" name="Default">
<case_sensitive>no</case_sensitive>
<database_type>Microsoft_SQL_Server</database_type>
<db_alias_name1>DW_ALIAS</db_alias_name1>
<db_alias_user1>dwt</db_alias_user1>
<loader_xact_size>1000</loader_xact_size>
<locale_codepage>&lt;default&gt;</locale_codepage>
<locale_language>&lt;default&gt;</locale_language>
<locale_territory>&lt;default&gt;</locale_territory>
<mssql_windows_authentication>no</mssql_windows_authentication>
<password>;C7D0EC161CA52183B3F6AA62065D16D75A3E6AAF455B3AE46139988B48682A4A</password>
<sql_server_database>XsTarget</sql_server_database>
<sql_server_dataserver>localhost,1433</sql_server_dataserver>
<sql_server_version>Microsoft SQL Server 2005</sql_server_version>
<user>dwt</user>
</DSConfiguration>
</DSConfigurations>

</DIAttribute>
<DIAttribute name="enable_data_transfer" value="yes"/>
<DIAttribute name="import_unknown_type" value="no"/>
<DIAttribute name="name" value="DW_DS"/>
<DIAttribute name="unknown_type_size" value="255"/>
</DIAttributes>
</DIDatabaseDatastore>
<DIDatabaseDatastore name="SRCSTAGING_DS" typeId="3" >
<DIAttributes>
<DIAttribute name="DBLiveLoad" value="no"/>
<DIAttribute name="application_type" value="Custom"/>
<DIAttribute name="cdc_enabled" value="no"/>
<DIAttribute name="datastore_repotype" value="local"/>
<DIAttribute name="ds_configuration_enabled" value="yes"/>
<DIAttribute name="ds_configurations" hasNestedXMLTree ="true">

<DSConfigurations>
<DSConfiguration default="true" name="Default">
<case_sensitive>no</case_sensitive>
<database_type>Microsoft_SQL_Server</database_type>
<db_alias_name1>SRCSTAGING_ALIAS</db_alias_name1>
<db_alias_user1>dws</db_alias_user1>
<loader_xact_size>1000</loader_xact_size>
<locale_codepage>&lt;default&gt;</locale_codepage>
<locale_language>&lt;default&gt;</locale_language>
<locale_territory>&lt;default&gt;</locale_territory>
<mssql_windows_authentication>no</mssql_windows_authentication>
<password>;085A6DF93DA01ED1DEA3BB1DC1D656C0EF56E65913FB53605B75804428674DE2</password>
<sql_server_database>XsStaging</sql_server_database>
<sql_server_dataserver>localhost,1433</sql_server_dataserver>
<sql_server_version>Microsoft SQL Server 2005</sql_server_version>
<user>dws</user>
</DSConfiguration>
</DSConfigurations>

</DIAttribute>
<DIAttribute name="enable_data_transfer" value="yes"/>
<DIAttribute name="import_unknown_type" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="unknown_type_size" value="255"/>
</DIAttributes>
</DIDatabaseDatastore>
<DIDatabaseDatastore name="DW_METADATA_DS" typeId="3" >
<DIAttributes>
<DIAttribute name="DBLiveLoad" value="no"/>
<DIAttribute name="application_type" value="Custom"/>
<DIAttribute name="cdc_enabled" value="no"/>
<DIAttribute name="datastore_repotype" value="local"/>
<DIAttribute name="ds_configuration_enabled" value="yes"/>
<DIAttribute name="ds_configurations" hasNestedXMLTree ="true">

<DSConfigurations>
<DSConfiguration default="true" name="Default">
<case_sensitive>no</case_sensitive>
<database_type>Microsoft_SQL_Server</database_type>
<db_alias_name1>DW_METADATA_ALIAS</db_alias_name1>
<db_alias_user1>dwmetadata</db_alias_user1>
<loader_xact_size>1000</loader_xact_size>
<locale_codepage>&lt;default&gt;</locale_codepage>
<locale_language>&lt;default&gt;</locale_language>
<locale_territory>&lt;default&gt;</locale_territory>
<mssql_windows_authentication>no</mssql_windows_authentication>
<password>;085A6DF93DA01ED1DEA3BB1DC1D656C0EF56E65913FB53605B75804428674DE2</password>
<sql_server_database>XsStaging</sql_server_database>
<sql_server_dataserver>localhost,1433</sql_server_dataserver>
<sql_server_version>Microsoft SQL Server 2005</sql_server_version>
<user>dwmetadata</user>
</DSConfiguration>
</DSConfigurations>

</DIAttribute>
<DIAttribute name="enable_data_transfer" value="yes"/>
<DIAttribute name="import_unknown_type" value="no"/>
<DIAttribute name="name" value="DW_METADATA_DS"/>
<DIAttribute name="unknown_type_size" value="255"/>
</DIAttributes>
</DIDatabaseDatastore>
<DIDatabaseDatastore name="DW_ABC_DS" typeId="3" >
<DIAttributes>
<DIAttribute name="DBLiveLoad" value="no"/>
<DIAttribute name="application_type" value="Custom"/>
<DIAttribute name="cdc_enabled" value="no"/>
<DIAttribute name="datastore_repotype" value="local"/>
<DIAttribute name="ds_configuration_enabled" value="yes"/>
<DIAttribute name="ds_configurations" hasNestedXMLTree ="true">

<DSConfigurations>
<DSConfiguration default="true" name="Default">
<case_sensitive>no</case_sensitive>
<database_type>Microsoft_SQL_Server</database_type>
<db_alias_name1>DW_ABC_ALIAS</db_alias_name1>
<db_alias_user1>dwabc</db_alias_user1>
<loader_xact_size>1000</loader_xact_size>
<locale_codepage>&lt;default&gt;</locale_codepage>
<locale_language>&lt;default&gt;</locale_language>
<locale_territory>&lt;default&gt;</locale_territory>
<mssql_windows_authentication>no</mssql_windows_authentication>
<password>;89770408927C5ECAB76D9855E0DA5FE4F25B0E2949263E3397D5BD72B1A30930</password>
<sql_server_database>XsStaging</sql_server_database>
<sql_server_dataserver>localhost,1433</sql_server_dataserver>
<sql_server_version>Microsoft SQL Server 2005</sql_server_version>
<user>dwabc</user>
</DSConfiguration>
</DSConfigurations>

</DIAttribute>
<DIAttribute name="enable_data_transfer" value="yes"/>
<DIAttribute name="import_unknown_type" value="no"/>
<DIAttribute name="name" value="DW_ABC_DS"/>
<DIAttribute name="unknown_type_size" value="255"/>
</DIAttributes>
</DIDatabaseDatastore>
<DITable name="PERIOD_DIM" owner="dwt" datastore="DW_DS" database="XsTarget" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="DW_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DESCRIPTION" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="DISPLAY_LABEL" datatype="VARCHAR" size="20" nullable="true" >
</DIColumn>
<DIColumn name="END_DATE" datatype="DATETIME" nullable="false" >
</DIColumn>
<DIColumn name="FINANCIAL_USAGE_TYPE" datatype="VARCHAR" size="20" nullable="true" >
</DIColumn>
<DIColumn name="MD_ACTIVESTATUSIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="MD_CREATEDDATE" datatype="DATETIME" nullable="false" >
</DIColumn>
<DIColumn name="MD_DELETEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_LASTMODDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_TRANSENDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_TRANSLASTIND" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
<DIColumn name="NAME" datatype="VARCHAR" size="20" nullable="true" >
</DIColumn>
<DIColumn name="PARENT_DURABLE_KEY" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="PARENT_ID" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="PERIOD_NUMBER" datatype="DECIMAL" precision="16" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="PERIODICITY" datatype="VARCHAR" size="20" nullable="false" >
</DIColumn>
<DIColumn name="PK_PERIOD_ID" datatype="DECIMAL" precision="18" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="START_DATE" datatype="DATETIME" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="PK_PERIOD_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_PERIOD_DIM" unique="true">
<DIIndexColumn name="PK_PERIOD_ID" />
</DITableIndex>
</DITable>
<DITable name="SA_COMPLIANCE_STATUS_SSI" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="PERIOD_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="MD_QUALIFIER" datatype="VARCHAR" size="200" nullable="true" >
</DIColumn>
<DIColumn name="POLICY_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="NODE_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="POLICY_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="COMPLIANCE_STATUS" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DATE_STATUS_START_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DATE_RECORD_START_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="PERIOD_BUSINESS_KEY" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DATE_STATUS_START_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DATE_RECORD_START_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="NODE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="DURATION" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_SA_COMPLIANCE_STATUS_SSI" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="SA_COMPLIANCE_STATUS_SSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DATE_STATUS_START_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="POLICY_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="NODE_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="POLICY_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="DURATION" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="DATE_RECORD_START_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="COMPLIANCE_STATUS" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="NODE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="PERIOD_BUSINESS_KEY" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DATE_RECORD_START_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_QUALIFIER" datatype="VARCHAR" size="200" nullable="true" >
</DIColumn>
<DIColumn name="DATE_STATUS_START_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="PERIOD_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_SA_COMPLIANCE_STATUS_SSNP" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="SA_JOB_ACTION_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SERVERSTATUS" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIColumn name="JOBACTIONSTARTTIME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="JOBACTIONSTATUS" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIColumn name="JOBACTIONID" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIColumn name="JOBGROUPID" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="SERVERID" datatype="VARCHAR" size="255" nullable="false" >
</DIColumn>
<DIColumn name="JOBENDDATE" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="JOBID" datatype="VARCHAR" size="255" nullable="false" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="JOBACTIONENDTIME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_SA_JOB_ACTION_EXT" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="SA_JOB_INFO_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="JOBTYPE" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="JOBENDDATE" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="JOBID" datatype="VARCHAR" size="255" nullable="false" >
</DIColumn>
<DIColumn name="JOBSTARTDATE" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="JOBSTATUS" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_SA_JOB_INFO_EXT" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="SA_JOB_POLICY_ITEM_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SERVERID" datatype="VARCHAR" size="255" nullable="false" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="JOBENDDATE" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="POLICYITEMID" datatype="VARCHAR" size="255" nullable="false" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="JOBID" datatype="VARCHAR" size="255" nullable="false" >
</DIColumn>
<DIColumn name="POLICYID" datatype="VARCHAR" size="255" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_SA_JOB_POLICY_ITEM_EXT" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="SA_NODE_SSI" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_QUALIFIER" datatype="VARCHAR" size="200" nullable="true" >
</DIColumn>
<DIColumn name="BIOS_UID" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="NODE_MODEL" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIColumn name="SYS_OBJECT_ID" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIColumn name="FLAG_IS_MANAGED" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="DESCRIPTION" datatype="VARCHAR" size="1024" nullable="true" >
</DIColumn>
<DIColumn name="NODE_FAMILY" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIColumn name="NODE_NAME" datatype="VARCHAR" size="1024" nullable="true" >
</DIColumn>
<DIColumn name="NODE_ROLE" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIColumn name="OS" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIColumn name="NODE_ID" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="FLAG_IS_DROPPED" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="VENDOR" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIColumn name="MONITORED_BY" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIColumn name="BIOS_SERIAL_NUMBER" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIColumn name="BIOS_ASSET_TAG" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIColumn name="DISPLAY_LABEL" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="CI_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="MEMORY_SIZE" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="DATE_CREATED_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DATE_CREATED_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="NET_BIOS_NAME" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIColumn name="DATE_MODIFIED_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DATE_MODIFIED_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="PRIMARY_DNS_NAME" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="SERIAL_NUMBER" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIColumn name="CI_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="SNMP_SYS_NAME" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIColumn name="OS_VENDOR" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIColumn name="DOMAIN_NAME" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIColumn name="TIME_ZONE" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_SA_NODE_SSI" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="SA_POLICY_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DESCRIPTION" datatype="VARCHAR" size="1024" nullable="true" >
</DIColumn>
<DIColumn name="NAME" datatype="VARCHAR" size="1024" nullable="true" >
</DIColumn>
<DIColumn name="POLICYID" datatype="VARCHAR" size="255" nullable="false" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="CATEGORY" datatype="VARCHAR" size="255" nullable="false" >
</DIColumn>
<DIColumn name="MODIFIEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="CREATEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_SA_POLICY_EXT" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="SA_POLICY_REMEDIATION_SSI" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="REM_START_PERIOD_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="COUNT_TOTAL_REM_ACTIONS" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="COUNT_FAILED_REM_ACTIONS" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="POLICY_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="REMEDIATION_STATUS" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="POLICY_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="DATE_REMEDIATION_END_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DATE_REMEDIATION_START_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="REM_START_PERIOD_BUSINESS_KEY" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DATE_REMEDIATION_START_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_QUALIFIER" datatype="VARCHAR" size="200" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="REM_END_PERIOD_BUSINESS_KEY" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="REM_END_PERIOD_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="COUNT_SUCCES_REM_ACTIONS" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="NODE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="NODE_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="DATE_REMEDIATION_END_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="COUNT_UNKNOWN_REM_ACTIONS" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="AVG_EXECUTION_TIME" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_SA_POLICY_REMEDIATION_SSI" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="SA_POLICY_RESULT_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="TARGETSERVERID" datatype="VARCHAR" size="16" nullable="true" >
</DIColumn>
<DIColumn name="POLICYID" datatype="VARCHAR" size="16" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="STARTDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="TARGETCOUNT" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="ENDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="AUDITRESULTID" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="RULESFAILEDCOUNT" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="RULESRUNCOUNT" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="RULESPASSEDCOUNT" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="TARGETSTATUS" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_SA_POLICY_RESULT_EXT" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="SA_POLICY_RESULT_SSI" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="PERIOD_BUSINESS_KEY" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="POLICY_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="COUNT_RULES_NON_COMPLIANT" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="DATE_RESULT_COMPUTED_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="COUNT_TOTAL_RULES" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="AVG_EXECUTION_TIME" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="DATE_RESULT_COMPUTED_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="NODE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="COMPLIANCE_STATUS" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="PERIOD_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="NODE_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="COUNT_RULES_COMPLIANT" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="MD_QUALIFIER" datatype="VARCHAR" size="200" nullable="true" >
</DIColumn>
<DIColumn name="POLICY_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_SA_POLICY_RESULT_SSI" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="SA_POLICY_SSI" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="POLICY_DEFINED_BY" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIColumn name="POLICY_STATUS" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DISPLAY_LABEL" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="POLICY_CATEGORY" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIColumn name="MD_QUALIFIER" datatype="VARCHAR" size="200" nullable="true" >
</DIColumn>
<DIColumn name="DATE_CREATED_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="POLICY_SUB_CATEGORY" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="DATE_MODIFIED_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DATE_MODIFIED_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="POLICY_NAME" datatype="VARCHAR" size="1024" nullable="true" >
</DIColumn>
<DIColumn name="DATE_CREATED_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DESCRIPTION" datatype="VARCHAR" size="1024" nullable="true" >
</DIColumn>
<DIColumn name="POLICY_SOURCE" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_SA_POLICY_SSI" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="SA_SERVER_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SERIALNUMBER" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIColumn name="MANUFACTURE" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="NAME" datatype="VARCHAR" size="1024" nullable="true" >
</DIColumn>
<DIColumn name="OPSLIFECYCLE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="NETBIOSNAME" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIColumn name="OSVERSION" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIColumn name="DESCRIPTION" datatype="VARCHAR" size="1024" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DISCOVEREDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="MODEL" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIColumn name="MODIFIEDDATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="SERVERID" datatype="VARCHAR" size="255" nullable="false" >
</DIColumn>
<DIColumn name="MEMORYQUANTITY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_SA_SERVER_EXT" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="DataSourceConnection" owner="dwmetadata" datastore="DW_METADATA_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="DW_METADATA_ALIAS" />
</DIProperties>
<DIColumn name="Hjid" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="Hjtype" datatype="VARCHAR" size="255" nullable="false" >
</DIColumn>
<DIColumn name="ProductType" datatype="VARCHAR" size="50" nullable="true" >
</DIColumn>
<DIColumn name="ProductName" datatype="VARCHAR" size="50" nullable="true" >
</DIColumn>
<DIColumn name="TimeZone" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIColumn name="ProductVersion" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="CP_ID" datatype="DECIMAL" precision="19" scale="0" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="Hjid" />
</DIPrimaryKey>
<DITableIndex name="PK_DATASOURCECONNECTION" unique="true">
<DIIndexColumn name="Hjid" />
</DITableIndex>
</DITable>
<DITable name="DW_CONFIGURATION" owner="dwmetadata" datastore="DW_METADATA_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="DW_METADATA_ALIAS" />
</DIProperties>
<DIColumn name="ID" datatype="DECIMAL" precision="10" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="PROPERTY_NAME" datatype="VARCHAR" size="30" nullable="true" >
</DIColumn>
<DIColumn name="PROPERTY_VALUE" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
</DITable>
<DITable name="FILE_LOCATION_INFO" owner="dwmetadata" datastore="DW_METADATA_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="DW_METADATA_ALIAS" />
</DIProperties>
<DIColumn name="ID" datatype="DECIMAL" precision="10" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SOURCE" datatype="VARCHAR" size="30" nullable="true" >
</DIColumn>
<DIColumn name="FILE_LOCATION" datatype="VARCHAR" size="200" nullable="true" >
</DIColumn>
</DITable>
<DITable name="TIMEZONE_INFO" owner="dwmetadata" datastore="DW_METADATA_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="DW_METADATA_ALIAS" />
</DIProperties>
<DIColumn name="ID" datatype="DECIMAL" precision="10" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="TIMEZONE_ID" datatype="VARCHAR" size="255" nullable="false" >
</DIColumn>
<DIColumn name="YEAR_" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DST_START_DATE_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DST_END_DATE_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DST_START_DATE_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DST_END_DATE_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="BASE_UTC_OFFSET" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DST_VALUE" datatype="DECIMAL" precision="19" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="DST_ENABLED" datatype="VARCHAR" size="1" nullable="false" >
</DIColumn>
</DITable>
<DIExcelDatastore name="SA_POLICY_SRC" typeId="3" >
<DIProperties>
<DIAttribute name="SavedAfterCheckOut" value="YES"/>
<DIAttribute name="Date_created" value="Tue Aug 27 11:01:26 2013"/>
<DIAttribute name="Date_modified" value="Mon Nov 12 11:43:35 2012"/>
</DIProperties>
<DISchema>
<DIElement name="NAME" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Content_Type" value="NAME"/>
<DIAttribute name="Description" value=""/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
</DIElement>
<DIElement name="CATEGORY" datatype="VARCHAR" size="255" >
</DIElement>
<DIElement name="CREATEDDATE" datatype="DATETIME" >
</DIElement>
<DIElement name="MODIFIEDDATE" datatype="DATETIME" >
</DIElement>
<DIElement name="POLICYID" datatype="VARCHAR" size="100" >
</DIElement>
</DISchema>
<DIAttributes>
<DIAttribute name="MSExcel_file_dir" value="$G_EXTN_FILELOCATION"/>
<DIAttribute name="MSExcel_file_name" value="SA_POLICY_SRC.xls"/>
<DIAttribute name="MSExcel_worksheet" value="DATA"/>
<DIAttribute name="MSExcel_worksheet_all" value="yes"/>
<DIAttribute name="MSExcel_worksheet_is_number" value="no"/>
<DIAttribute name="MSExcel_worksheet_use_1row_names" value="yes"/>
<DIAttribute name="locale_codepage" value="utf-8"/>
<DIAttribute name="locale_language" value="&lt;default&gt;"/>
<DIAttribute name="locale_territory" value="&lt;default&gt;"/>
</DIAttributes>
</DIExcelDatastore>
<DIScriptFunction name="ABC_ADDAUDITMETRIC_FN" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="print('Saving audit metric for process ID = {$p_process_id}');&#xA;print('-&gt;  job stream step detail name = {$p_job_stream_step_detail_name}');&#xA;print('-&gt;  name = {$p_name}');&#xA;print('-&gt;  value = {$p_value}');&#xA;print('-&gt;  status = {$p_status}');&#xA;print('-&gt;  status_info = {$p_status_info}');&#xA;print('-&gt;  category = {$p_category}');&#xA;print('-&gt;  description = {$p_description}');&#xA;&#xA;sql('DW_ABC_DS','insert into AUDIT_METRIC &#xA;&#x9;&#x9;(MD_PROCESS_ID, JOB_STREAM_STEP_DETAIL_NAME, NAME, VALUE, UNIT, STATUS, STATUS_INFO, CATEGORY, DESCRIPTION) &#xA;&#x9;&#x9;VALUES ({$p_process_id},{$p_job_stream_step_detail_name},{$p_name},{$p_value},{$p_unit},{$p_status},{$p_status_info},{$p_category}, {$p_description} )');&#xA;&#xA;&#xA;# retrieve the affected ID &#xA;$l_created_key = sql('DW_ABC_DS','SELECT AUDIT_METRIC_ID from AUDIT_METRIC where MD_PROCESS_ID = {$p_process_id} AND JOB_STREAM_STEP_DETAIL_NAME = {$p_job_stream_step_detail_name} AND NAME = {$p_name}'); &#xA;&#xA;return $l_created_key;"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
<DIAttribute name="Parallelizable" value="no"/>
<DIAttribute name="isScriptValidationFunction" value="no"/>
</DIProperties>
<DIParameters><DIElement paramType="IN" name="$p_job_stream_step_detail_name" datatype="VARCHAR" size="60" >
</DIElement>
<DIElement paramType="IN" name="$p_process_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="IN" name="$p_name" datatype="VARCHAR" size="60" >
</DIElement>
<DIElement paramType="IN" name="$p_value" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="IN" name="$p_unit" datatype="VARCHAR" size="60" >
</DIElement>
<DIElement paramType="IN" name="$p_status" datatype="VARCHAR" size="20" >
</DIElement>
<DIElement paramType="IN" name="$p_status_info" datatype="VARCHAR" size="255" >
</DIElement>
<DIElement paramType="IN" name="$p_category" datatype="VARCHAR" size="60" >
</DIElement>
<DIElement paramType="IN" name="$p_description" datatype="VARCHAR" size="255" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$l_created_key" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="INT" />
<DISteps>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print('Saving audit metric for process ID = {$p_process_id}')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value="Saving audit metric for process ID = {$p_process_id}" datatype="VARCHAR" size="52" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print('-&gt;  job stream step detail name = {$p_job_stream_step_detail_name}')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value="-&gt;  job stream step detail name = {$p_job_stream_step_detail_name}" datatype="VARCHAR" size="66" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print('-&gt;  name = {$p_name}')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value="-&gt;  name = {$p_name}" datatype="VARCHAR" size="20" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print('-&gt;  value = {$p_value}')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value="-&gt;  value = {$p_value}" datatype="VARCHAR" size="22" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print('-&gt;  status = {$p_status}')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value="-&gt;  status = {$p_status}" datatype="VARCHAR" size="24" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print('-&gt;  status_info = {$p_status_info}')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value="-&gt;  status_info = {$p_status_info}" datatype="VARCHAR" size="34" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print('-&gt;  category = {$p_category}')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value="-&gt;  category = {$p_category}" datatype="VARCHAR" size="28" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print('-&gt;  description = {$p_description}')" >
<FUNCTION_CALL name="print"  type="DI" >
<CONSTANT value="-&gt;  description = {$p_description}" datatype="VARCHAR" size="34" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'insert into AUDIT_METRIC &#xA;&#x9;&#x9;(MD_PROCESS_ID, JOB_STREAM_STEP_DETAIL_NAME, NAME, VALUE, UNIT, STATUS, STATUS_INFO, CATEGORY, DESCRIPTION) &#xA;&#x9;&#x9;VALUES ({$p_process_id},{$p_job_stream_step_detail_name},{$p_name},{$p_value},{$p_unit},{$p_status},{$p_status_info},{$p_category}, {$p_description} )')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="insert into AUDIT_METRIC &#xA;&#x9;&#x9;(MD_PROCESS_ID, JOB_STREAM_STEP_DETAIL_NAME, NAME, VALUE, UNIT, STATUS, STATUS_INFO, CATEGORY, DESCRIPTION) &#xA;&#x9;&#x9;VALUES ({$p_process_id},{$p_job_stream_step_detail_name},{$p_name},{$p_value},{$p_unit},{$p_status},{$p_status_info},{$p_category}, {$p_description} )" datatype="VARCHAR" size="289" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$l_created_key" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'SELECT AUDIT_METRIC_ID from AUDIT_METRIC where MD_PROCESS_ID = {$p_process_id} AND JOB_STREAM_STEP_DETAIL_NAME = {$p_job_stream_step_detail_name} AND NAME = {$p_name}')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="SELECT AUDIT_METRIC_ID from AUDIT_METRIC where MD_PROCESS_ID = {$p_process_id} AND JOB_STREAM_STEP_DETAIL_NAME = {$p_job_stream_step_detail_name} AND NAME = {$p_name}" datatype="VARCHAR" size="166" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr="$l_created_key" >
<VARIABLE_REFERENCE name="$l_created_key" />
</DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIScriptFunction name="ABC_ENDJB_FN" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="#UPDATE STEP_RUNTIME RECORD WITH SUCCESS STATUS AND END TIME&#xA;#GET JOB_ID&#xA;&#xA;$l_status = 'SUCCESS';&#xA;#$now = sysdate();&#xA;&#xA;$l_wf_failed_count = sql('DW_ABC_DS',' select count(status) from JOB_STREAM_STEP_DETAIL_RT&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND (status = \'ERROR\' or status = \'MAX_EXECUTION_TIME_EXCEEDED\')');&#xA;ETL_PRINT( '**     wf_failed_count = {$l_wf_failed_count}' );&#xA;&#xA;$l_wf_success_count = sql('DW_ABC_DS',' select count(status) from JOB_STREAM_STEP_DETAIL_RT&#xA;                     where MD_PROCESS_ID = {$p_process_id} AND status = \'SUCCESS\'');&#xA;ETL_PRINT( '**     wf_success_count = {$l_wf_success_count}' );&#xA;&#xA;$l_am_failed_count = sql('DW_ABC_DS',' select count(status) from AUDIT_METRIC&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND (status = \'ERROR\' or status = \'MAX_EXECUTION_TIME_EXCEEDED\')');&#xA;ETL_PRINT( '**     am_failed_count = {$l_am_failed_count}' );&#xA;&#xA;$l_am_warning_count = sql('DW_ABC_DS',' select count(status) from AUDIT_METRIC&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND status = \'WARNING\'');&#xA;ETL_PRINT( '**     am_warning_count = {$l_am_warning_count}' );&#xA;&#xA;$l_am_success_count = sql('DW_ABC_DS',' select count(status) from AUDIT_METRIC&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND status = \'SUCCESS\'');&#xA;ETL_PRINT( '**     am_success_count = {$l_am_success_count}' );&#xA;&#xA;$l_status_info = 'WFs statuses: success: ' || $l_wf_success_count || ', error: '  || $l_wf_failed_count ||' || Audit metrics: success: ' || $l_am_success_count || ', warning: ' || $l_am_warning_count || ', error: ' || $l_am_failed_count || '.';&#xA;&#xA;if ($l_wf_failed_count &gt; 0)&#xA;begin&#xA;&#x9;$l_status = 'ERROR';&#xA;&#x9;$l_reco_action =  'Drill to WF level to access the error message. ';&#xA;end&#x9;&#xA;else if ($l_am_failed_count &gt; 0)&#xA;begin&#xA;&#x9;$l_status = 'ERROR'; &#xA;&#x9;$l_reco_action = $l_reco_action || 'Refer to failed metrics. ';&#xA;end&#xA;else if ($l_am_warning_count &gt; 0)&#xA;begin&#xA;&#x9;$l_status = 'WARNING';&#xA;&#x9;$l_reco_action = $l_reco_action || 'Check WARNING metrics. ';&#xA;end&#xA;&#xA;&#xA;#sql('DW_ABC_DS','update JOB_STREAM_STEP_RT&#xA;#               set STATUS = {$l_status}, STATE = \'FINISHED\' , END_TIME = {sysdate()}, STATUS_INFO = {$l_status_info}, RECO_ACTION = {$l_reco_action}&#xA;#               where MD_PROCESS_ID = {$p_process_id}');&#xA;&#xA;sql('DW_ABC_DS','update JOB_STREAM_STEP_RT&#xA;               set STATUS = {$l_status}, STATE = \'FINISHED\' , END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127), STATUS_INFO = {$l_status_info}, RECO_ACTION = {$l_reco_action}&#xA;               where MD_PROCESS_ID = {$p_process_id}');&#xA;ETL_PRINT( '**' );&#xA;ETL_PRINT( '**' );&#xA;ETL_PRINT( '** The Job {job_name()} is ending' );&#xA;ETL_PRINT( '**   status: {$l_status}' );&#xA;ETL_PRINT( '**   explanation: {$l_status_info})' );&#xA;ETL_PRINT( '********************************' );&#xA;ETL_PRINT( '********************************' );&#xA;&#xA;return NULL;&#xA;"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
</DIProperties>
<DIParameters><DIElement paramType="IN" name="$p_process_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$l_wf_failed_count" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_status" datatype="VARCHAR" size="10" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_wf_success_count" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_status_info" datatype="VARCHAR" size="400" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_am_failed_count" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_am_warning_count" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_am_success_count" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_reco_action" datatype="VARCHAR" size="4000" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="INT" />
<DISteps>
<DIAssignmentStep typeId="12" variable="$l_status" >
<DIExpression isString="true" expr="'SUCCESS'" >
<CONSTANT value="SUCCESS" datatype="VARCHAR" size="7" />
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$l_wf_failed_count" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', ' select count(status) from JOB_STREAM_STEP_DETAIL_RT&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND (status = \'ERROR\' or status = \'MAX_EXECUTION_TIME_EXCEEDED\')')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value=" select count(status) from JOB_STREAM_STEP_DETAIL_RT&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND (status = 'ERROR' or status = 'MAX_EXECUTION_TIME_EXCEEDED')" datatype="VARCHAR" size="175" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**     wf_failed_count = {$l_wf_failed_count}')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**     wf_failed_count = {$l_wf_failed_count}" datatype="VARCHAR" size="45" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$l_wf_success_count" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', ' select count(status) from JOB_STREAM_STEP_DETAIL_RT&#xA;                     where MD_PROCESS_ID = {$p_process_id} AND status = \'SUCCESS\'')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value=" select count(status) from JOB_STREAM_STEP_DETAIL_RT&#xA;                     where MD_PROCESS_ID = {$p_process_id} AND status = 'SUCCESS'" datatype="VARCHAR" size="134" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**     wf_success_count = {$l_wf_success_count}')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**     wf_success_count = {$l_wf_success_count}" datatype="VARCHAR" size="47" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$l_am_failed_count" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', ' select count(status) from AUDIT_METRIC&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND (status = \'ERROR\' or status = \'MAX_EXECUTION_TIME_EXCEEDED\')')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value=" select count(status) from AUDIT_METRIC&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND (status = 'ERROR' or status = 'MAX_EXECUTION_TIME_EXCEEDED')" datatype="VARCHAR" size="162" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**     am_failed_count = {$l_am_failed_count}')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**     am_failed_count = {$l_am_failed_count}" datatype="VARCHAR" size="45" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$l_am_warning_count" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', ' select count(status) from AUDIT_METRIC&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND status = \'WARNING\'')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value=" select count(status) from AUDIT_METRIC&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND status = 'WARNING'" datatype="VARCHAR" size="120" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**     am_warning_count = {$l_am_warning_count}')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**     am_warning_count = {$l_am_warning_count}" datatype="VARCHAR" size="47" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$l_am_success_count" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', ' select count(status) from AUDIT_METRIC&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND status = \'SUCCESS\'')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value=" select count(status) from AUDIT_METRIC&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND status = 'SUCCESS'" datatype="VARCHAR" size="120" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**     am_success_count = {$l_am_success_count}')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**     am_success_count = {$l_am_success_count}" datatype="VARCHAR" size="47" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$l_status_info" >
<DIExpression isString="true" expr="(((((((((('WFs statuses: success: ' || $l_wf_success_count) || ', error: ') || $l_wf_failed_count) || ' || Audit metrics: success: ') || $l_am_success_count) || ', warning: ') || $l_am_warning_count) || ', error: ') || $l_am_failed_count) || '.')" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="WFs statuses: success: " datatype="VARCHAR" size="23" />
<VARIABLE_REFERENCE name="$l_wf_success_count" />
</CONCAT>
<CONSTANT value=", error: " datatype="VARCHAR" size="9" />
</CONCAT>
<VARIABLE_REFERENCE name="$l_wf_failed_count" />
</CONCAT>
<CONSTANT value=" || Audit metrics: success: " datatype="VARCHAR" size="28" />
</CONCAT>
<VARIABLE_REFERENCE name="$l_am_success_count" />
</CONCAT>
<CONSTANT value=", warning: " datatype="VARCHAR" size="11" />
</CONCAT>
<VARIABLE_REFERENCE name="$l_am_warning_count" />
</CONCAT>
<CONSTANT value=", error: " datatype="VARCHAR" size="9" />
</CONCAT>
<VARIABLE_REFERENCE name="$l_am_failed_count" />
</CONCAT>
<CONSTANT value="." datatype="VARCHAR" size="1" />
</CONCAT>
</DIExpression>
</DIAssignmentStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($l_wf_failed_count &gt; 0)" >
<LOGICAL_OP op="GT">
<VARIABLE_REFERENCE name="$l_wf_failed_count" />
<CONSTANT value="0" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$l_status" >
<DIExpression isString="true" expr="'ERROR'" >
<CONSTANT value="ERROR" datatype="VARCHAR" size="5" />
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$l_reco_action" >
<DIExpression isString="true" expr="'Drill to WF level to access the error message. '" >
<CONSTANT value="Drill to WF level to access the error message. " datatype="VARCHAR" size="47" />
</DIExpression>
</DIAssignmentStep>
</DIIf>
<DIElse>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($l_am_failed_count &gt; 0)" >
<LOGICAL_OP op="GT">
<VARIABLE_REFERENCE name="$l_am_failed_count" />
<CONSTANT value="0" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$l_status" >
<DIExpression isString="true" expr="'ERROR'" >
<CONSTANT value="ERROR" datatype="VARCHAR" size="5" />
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$l_reco_action" >
<DIExpression isString="true" expr="($l_reco_action || 'Refer to failed metrics. ')" >
<CONCAT>
<VARIABLE_REFERENCE name="$l_reco_action" />
<CONSTANT value="Refer to failed metrics. " datatype="VARCHAR" size="25" />
</CONCAT>
</DIExpression>
</DIAssignmentStep>
</DIIf>
<DIElse>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($l_am_warning_count &gt; 0)" >
<LOGICAL_OP op="GT">
<VARIABLE_REFERENCE name="$l_am_warning_count" />
<CONSTANT value="0" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$l_status" >
<DIExpression isString="true" expr="'WARNING'" >
<CONSTANT value="WARNING" datatype="VARCHAR" size="7" />
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$l_reco_action" >
<DIExpression isString="true" expr="($l_reco_action || 'Check WARNING metrics. ')" >
<CONCAT>
<VARIABLE_REFERENCE name="$l_reco_action" />
<CONSTANT value="Check WARNING metrics. " datatype="VARCHAR" size="23" />
</CONCAT>
</DIExpression>
</DIAssignmentStep>
</DIIf>
</DIIfStep>
</DIElse>
</DIIfStep>
</DIElse>
</DIIfStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'update JOB_STREAM_STEP_RT&#xA;               set STATUS = {$l_status}, STATE = \'FINISHED\' , END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127), STATUS_INFO = {$l_status_info}, RECO_ACTION = {$l_reco_action}&#xA;               where MD_PROCESS_ID = {$p_process_id}')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="update JOB_STREAM_STEP_RT&#xA;               set STATUS = {$l_status}, STATE = 'FINISHED' , END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127), STATUS_INFO = {$l_status_info}, RECO_ACTION = {$l_reco_action}&#xA;               where MD_PROCESS_ID = {$p_process_id}" datatype="VARCHAR" size="272" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**" datatype="VARCHAR" size="2" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**" datatype="VARCHAR" size="2" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('** The Job {job_name()} is ending')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="** The Job {job_name()} is ending" datatype="VARCHAR" size="33" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**   status: {$l_status}')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**   status: {$l_status}" datatype="VARCHAR" size="24" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**   explanation: {$l_status_info})')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**   explanation: {$l_status_info})" datatype="VARCHAR" size="35" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="********************************" datatype="VARCHAR" size="32" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="********************************" datatype="VARCHAR" size="32" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIScriptFunction name="ABC_ENDWF_FN" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="&#xA;# LOOP THROUGH ALL VALUES IN INPUT PARAMETER TARGET_TABLE FIELD&#xA;# UPDATE EACH VALUE (IN DELIMITED STRING) AS SINGLE RECORD WITH ENDDATE&#xA;# CHECK THAT ABC_ENDWF_FN CANNOT BE CALLED BEFORE ABC_STARTWF_FN&#xA;&#xA;$l_previous_status = sql('DW_ABC_DS','select STATUS from JOB_STREAM_STEP_DETAIL_RT&#xA;                                      where MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} ');&#xA;&#xA;if ($l_previous_status is null)&#xA;#  sql('DW_ABC_DS','insert into JOB_STREAM_STEP_DETAIL_RT &#xA;#                   (MD_PROCESS_ID, DETAIL_NAME, STATUS, END_TIME)  &#xA;#                   VALUES ({$p_process_id}, {$p_detailname}, \'ERROR\', {sysdate()})');&#x9;&#xD;&#xA;  sql('DW_ABC_DS','insert into JOB_STREAM_STEP_DETAIL_RT &#xA;                   (MD_PROCESS_ID, DETAIL_NAME, STATUS, END_TIME)  &#xA;                   VALUES ({$p_process_id}, {$p_detailname}, \'ERROR\', convert(datetime,{sysdate()},111))');&#x9;&#xA;else&#xA;  begin&#xA;    if ($l_previous_status = 'RUNNING')&#xA;      sql('DW_ABC_DS','update JOB_STREAM_STEP_DETAIL_RT&#xA;                       set STATUS = \'SUCCESS\', END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127)&#xA;                       where MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} ');&#xA;&#x9;else&#xA;      sql('DW_ABC_DS','update JOB_STREAM_STEP_DETAIL_RT&#xA;                       set STATUS = \'ERROR\', END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127)&#xA;                       where MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} ');&#xA;&#x9;&#xA;  end&#xA;&#xA;ETL_PRINT( '        ** The workflow: [workflow_name()] is ending' );&#xA;ETL_PRINT( '        **   user: ' || system_user_name() );&#xA;ETL_PRINT( '        **   detail name: ' || $p_detailname );&#xA;ETL_PRINT( '        ********************************' );&#xA;ETL_PRINT( '        ********************************' );&#xA;&#xA;return NULL;&#xA;&#xA;&#xA;&#xA;&#xA;  "/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
</DIProperties>
<DIParameters><DIElement paramType="IN" name="$p_detailname" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="IN" name="$p_process_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$l_previous_status" datatype="VARCHAR" size="12" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="INT" />
<DISteps>
<DIAssignmentStep typeId="12" variable="$l_previous_status" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'select STATUS from JOB_STREAM_STEP_DETAIL_RT&#xA;                                      where MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} ')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="select STATUS from JOB_STREAM_STEP_DETAIL_RT&#xA;                                      where MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} " datatype="VARCHAR" size="155" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($l_previous_status IS  NULL )" >
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$l_previous_status" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'insert into JOB_STREAM_STEP_DETAIL_RT &#xA;                   (MD_PROCESS_ID, DETAIL_NAME, STATUS, END_TIME)  &#xA;                   VALUES ({$p_process_id}, {$p_detailname}, \'ERROR\', convert(datetime,{sysdate()},111))')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="insert into JOB_STREAM_STEP_DETAIL_RT &#xA;                   (MD_PROCESS_ID, DETAIL_NAME, STATUS, END_TIME)  &#xA;                   VALUES ({$p_process_id}, {$p_detailname}, 'ERROR', convert(datetime,{sysdate()},111))" datatype="VARCHAR" size="211" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($l_previous_status = 'RUNNING')" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$l_previous_status" />
<CONSTANT value="RUNNING" datatype="VARCHAR" size="7" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'update JOB_STREAM_STEP_DETAIL_RT&#xA;                       set STATUS = \'SUCCESS\', END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127)&#xA;                       where MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} ')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="update JOB_STREAM_STEP_DETAIL_RT&#xA;                       set STATUS = 'SUCCESS', END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127)&#xA;                       where MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} " datatype="VARCHAR" size="243" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'update JOB_STREAM_STEP_DETAIL_RT&#xA;                       set STATUS = \'ERROR\', END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127)&#xA;                       where MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} ')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="update JOB_STREAM_STEP_DETAIL_RT&#xA;                       set STATUS = 'ERROR', END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127)&#xA;                       where MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} " datatype="VARCHAR" size="241" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIElse>
</DIIfStep>
</DIElse>
</DIIfStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ** The workflow: [workflow_name()] is ending')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ** The workflow: [workflow_name()] is ending" datatype="VARCHAR" size="52" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   user: ' || system_user_name()))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   user: " datatype="VARCHAR" size="19" />
<FUNCTION_CALL name="system_user_name"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   detail name: ' || $p_detailname))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   detail name: " datatype="VARCHAR" size="26" />
<VARIABLE_REFERENCE name="$p_detailname" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ********************************" datatype="VARCHAR" size="40" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ********************************" datatype="VARCHAR" size="40" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIScriptFunction name="ABC_FAILJB_FN" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="# IN EVENT THE JOB FAILED, UPDATE JOB RECORD WITH FAIL STATUS&#xA;&#xA;&#xA;if ($p_process_id is null)&#xA;  begin&#xA; &#x9; ETL_PRINT( 'ENTERED THE JOB CATCH BEFORE THE PROCESS_ID COULD BE SET (debug mode specific error)' );&#xA; &#x9; ETL_PRINT( 'AN ERROR RAISED BEFORE the execution of the job start script (this exception will not be recorded by ABC infrastructure)' );&#xA;  end&#xA;else&#xA;  begin&#xA;&#x9; $l_status_text = replace_substr( $p_status_info, '\'','\'\'');&#xA; &#x9; sql('DW_ABC_DS','update JOB_STREAM_STEP_RT&#xA;                 set STATE = \'FINISHED\', END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127), STATUS = \'ERROR\', STATUS_INFO = {$l_status_text}&#xA;                 where  MD_PROCESS_ID = {$p_process_id} ');&#xA;&#xA;  end&#xA;&#xA;&#xA;ETL_PRINT( '        ** The Job : [job_name()] FAILED' );&#xA;ETL_PRINT( '        **   user: ' || system_user_name() );&#xA;ETL_PRINT( '        **   status info: ' || $p_status_info );&#xA;ETL_PRINT( '        ********************************' );&#xA;ETL_PRINT( '        ********************************' );&#xA;&#xA;return NULL;&#xA;"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
<DIAttribute name="Parallelizable" value="no"/>
<DIAttribute name="isScriptValidationFunction" value="no"/>
</DIProperties>
<DIParameters><DIElement paramType="IN" name="$p_process_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="IN" name="$p_status_info" datatype="VARCHAR" size="400" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$l_status_text" datatype="VARCHAR" size="400" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="INT" />
<DISteps>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($p_process_id IS  NULL )" >
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$p_process_id" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('ENTERED THE JOB CATCH BEFORE THE PROCESS_ID COULD BE SET (debug mode specific error)')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="ENTERED THE JOB CATCH BEFORE THE PROCESS_ID COULD BE SET (debug mode specific error)" datatype="VARCHAR" size="84" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('AN ERROR RAISED BEFORE the execution of the job start script (this exception will not be recorded by ABC infrastructure)')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="AN ERROR RAISED BEFORE the execution of the job start script (this exception will not be recorded by ABC infrastructure)" datatype="VARCHAR" size="120" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
<DIAssignmentStep typeId="12" variable="$l_status_text" >
<DIExpression isString="true" expr="replace_substr($p_status_info, '\'', '\'\'')" >
<FUNCTION_CALL name="replace_substr"  type="DI" >
<VARIABLE_REFERENCE name="$p_status_info" />
<CONSTANT value="'" datatype="VARCHAR" size="1" />
<CONSTANT value="''" datatype="VARCHAR" size="2" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'update JOB_STREAM_STEP_RT&#xA;                 set STATE = \'FINISHED\', END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127), STATUS = \'ERROR\', STATUS_INFO = {$l_status_text}&#xA;                 where  MD_PROCESS_ID = {$p_process_id} ')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="update JOB_STREAM_STEP_RT&#xA;                 set STATE = 'FINISHED', END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127), STATUS = 'ERROR', STATUS_INFO = {$l_status_text}&#xA;                 where  MD_PROCESS_ID = {$p_process_id} " datatype="VARCHAR" size="241" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIElse>
</DIIfStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ** The Job : [job_name()] FAILED')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ** The Job : [job_name()] FAILED" datatype="VARCHAR" size="40" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   user: ' || system_user_name()))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   user: " datatype="VARCHAR" size="19" />
<FUNCTION_CALL name="system_user_name"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   status info: ' || $p_status_info))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   status info: " datatype="VARCHAR" size="26" />
<VARIABLE_REFERENCE name="$p_status_info" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ********************************" datatype="VARCHAR" size="40" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ********************************" datatype="VARCHAR" size="40" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIScriptFunction name="ABC_FAILWF_FN" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="# IN EVENT THE WORKFLOW FAILED, UPDATE WORKFLOW RECORD WITH FAIL STATUS&#xA;&#xA;$l_status_text = replace_substr( $p_status_info, '\'','\'\'');&#xA;&#xA;sql('DW_ABC_DS','update JOB_STREAM_STEP_DETAIL_RT&#xA;                 set STATUS = \'ERROR\', STATUS_INFO = {$l_status_text}, END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127)&#xA;                 where  MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} ');&#xA;&#xA;ETL_PRINT( '        ** The workflow: [workflow_name()] FAILED' );&#xA;ETL_PRINT( '        **   user: ' || system_user_name() );&#xA;ETL_PRINT( '        **   status info: ' || $p_status_info );&#xA;ETL_PRINT( '        **   detail name: ' || $p_detailname );&#xA;ETL_PRINT( '        ********************************' );&#xA;ETL_PRINT( '        ********************************' );&#xA;&#xA;return NULL;&#xA;"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
</DIProperties>
<DIParameters><DIElement paramType="IN" name="$p_detailname" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="IN" name="$p_process_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="IN" name="$p_status_info" datatype="VARCHAR" size="400" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$l_status_text" datatype="VARCHAR" size="400" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="INT" />
<DISteps>
<DIAssignmentStep typeId="12" variable="$l_status_text" >
<DIExpression isString="true" expr="replace_substr($p_status_info, '\'', '\'\'')" >
<FUNCTION_CALL name="replace_substr"  type="DI" >
<VARIABLE_REFERENCE name="$p_status_info" />
<CONSTANT value="'" datatype="VARCHAR" size="1" />
<CONSTANT value="''" datatype="VARCHAR" size="2" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'update JOB_STREAM_STEP_DETAIL_RT&#xA;                 set STATUS = \'ERROR\', STATUS_INFO = {$l_status_text}, END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127)&#xA;                 where  MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} ')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="update JOB_STREAM_STEP_DETAIL_RT&#xA;                 set STATUS = 'ERROR', STATUS_INFO = {$l_status_text}, END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127)&#xA;                 where  MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} " datatype="VARCHAR" size="262" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ** The workflow: [workflow_name()] FAILED')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ** The workflow: [workflow_name()] FAILED" datatype="VARCHAR" size="49" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   user: ' || system_user_name()))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   user: " datatype="VARCHAR" size="19" />
<FUNCTION_CALL name="system_user_name"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   status info: ' || $p_status_info))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   status info: " datatype="VARCHAR" size="26" />
<VARIABLE_REFERENCE name="$p_status_info" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   detail name: ' || $p_detailname))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   detail name: " datatype="VARCHAR" size="26" />
<VARIABLE_REFERENCE name="$p_detailname" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ********************************" datatype="VARCHAR" size="40" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ********************************" datatype="VARCHAR" size="40" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIScriptFunction name="ABC_STARTJB_FN" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="#$l_job_start_date = sysdate( );&#xD;&#xA;$l_job_start_date = sql('DW_ABC_DS','select getdate()');&#xD;&#xA;$l_job_start_date_vchar = sql('DW_ABC_DS','select convert(varchar(25),convert(datetime,{$l_job_start_date},111),127)');&#xD;&#xA;ETL_PRINT('l_job_start_date_vchar = '|| $l_job_start_date_vchar);&#xD;&#xA;#sql('DW_ABC_DS','select convert(datetime,GETDATE()-5,111)');&#xD;&#xA;#;&#xA;# the job may have been called from the DW scheduler as part of a job stream&#xA;# or it may be launched manually &#xA;# if the job is called as part of a job stream&#xA;#   then its row in DW_ABC_DS.STEP_RUNTIME identified by $G_STEP_RT_ID  has already &#xA;#   been created with a WAITING status&#xA;# else&#xA;#   the job has been launched out of a stream context, it will create its own entry &#xA;#   flagged as MANUAL in DW_ABC_DS.STEP_RUNTIME&#xA;       &#xA;if ($p_debug_mode is null or not $p_debug_mode = 1)&#xA;  begin&#xA;    if ($p_process_id is null)&#xA;      begin&#xA;&#x9;    ETL_PRINT( 'ERROR: $G_PROCESS_ID is not set. If you want to run manually the job, you must set $G_DEBUG_MODE=1' );&#xA;        raise_exception('$G_PROCESS_ID is not set. If you want to run manually the job, you must set $G_DEBUG_MODE=1');&#xA;      end&#xA;    # retrieve the batch id from the STEP_RUNTIME table&#xA;    $p_batch_id = sql('DW_ABC_DS',&#xA;      'SELECT MD_BATCH_ID FROM JOB_STREAM_STEP_RT where MD_PROCESS_ID = {$p_process_id}');&#xA;    if ($p_batch_id is null)&#xA;      begin&#xA;&#x9;    ETL_PRINT( 'ERROR: Process ' || $p_process_id || ' not found in STEP_RUNTIME table.' );&#xA;        raise_exception('process '||$p_process_id||' is not found in STEP_RUNTIME table.');&#xA;      end&#xA;  end&#xA;else&#xA;  begin&#xA;    if ($p_process_id is not null)&#xA;      begin&#xA;&#x9;    ETL_PRINT( 'ERROR: abC usage error detected : $G_DEBUG_MODE is set to ' || $p_debug_mode || ' but $G_PROCESS_ID is not null (set to '||$p_process_id||'). In debug mode Process ID will be allocated by the job and cannot be specified');&#xA;        raise_exception('ERROR: abC usage error detected : $G_DEBUG_MODE is set to ' || $p_debug_mode || ' but $G_PROCESS_ID is not null (set to '||$p_process_id||'). in debug mode Process ID will be allocated by the system and cannot be specified');&#xA;      end&#xA;    # create the job level row in DW_ABC_DS.STEP_RUNTIME note that only a basic row without start dates is created &#xA;  &#x9;# this will be done in code shared for scheduled and manual rows&#xA;&#xD;&#xA;#    sql('DW_ABC_DS','insert into JOB_STREAM_STEP_RT (JOB_NAME, START_TIME, STEP_OWNER, STATE) &#xA;#                     VALUES ({job_name()},{$l_job_start_date}, \'MANUAL\', \'STARTING\')');&#xA;&#xD;&#xA;    sql('DW_ABC_DS','insert into JOB_STREAM_STEP_RT (JOB_NAME, START_TIME, STEP_OWNER, STATE) &#xA;                     VALUES ({job_name()},{$l_job_start_date_vchar}, \'MANUAL\', \'STARTING\')');&#xA;  &#x9;# retrieve the row ID affected by the DB, this ID will be used for any future reference to the STEP_RUNTIME table&#xA;# &#x9;$p_process_id = sql('DW_ABC_DS','SELECT MD_PROCESS_ID from JOB_STREAM_STEP_RT where JOB_NAME = {job_name()} AND START_TIME = {$l_job_start_date} AND STEP_OWNER = \'MANUAL\' AND STATE =  \'STARTING\' ');&#xA;#&#x9;ETL_PRINT( 'After manual launch, the assigned Process ID is: ' || $p_process_id );&#xA;&#xD;&#xA; &#x9;$p_process_id = sql('DW_ABC_DS','SELECT MD_PROCESS_ID from JOB_STREAM_STEP_RT where JOB_NAME = {job_name()} AND START_TIME = {$l_job_start_date_vchar} AND STEP_OWNER = \'MANUAL\' AND STATE =  \'STARTING\' ');&#xA;&#x9;ETL_PRINT( 'After manual launch, the assigned Process ID is: ' || $p_process_id );&#xA;&#x9;# No new batch is created in debug mode, but set 0 to batch-id variable to have a not null value&#xA;&#x9;$p_batch_id = 0;&#xA;  end&#xA;&#xA;&#xA;ETL_PRINT ( 'Process ' || $p_process_id || ' retrieved $p_batch_id = {$p_batch_id}' );&#xA;$l_state = sql('DW_ABC_DS',&#xA;      'SELECT STATE FROM JOB_STREAM_STEP_RT where MD_PROCESS_ID = {$p_process_id}');&#xA;$l_job_name = sql('DW_ABC_DS',&#xA;      'SELECT JOB_NAME FROM JOB_STREAM_STEP_RT where MD_PROCESS_ID = {$p_process_id}');&#xA;&#xA;if ($l_state != 'STARTING' )&#xA;begin&#xA;    sql('DW_ABC_DS','update JOB_STREAM_STEP_RT set STATUS_INFO = \'Tried to run job, but it is not in a runnable state.\' &#xA;         where MD_PROCESS_ID = {$p_process_id}');&#xA;    raise_exception('ERROR: This job is not in a runnable state. This may come from Web Service timeout, the job will not execute and a new one will be trigered by ABC (if not already done)');&#xA;end&#xA;&#xA;if ($l_job_name != job_name() )&#xA;begin&#xA;   # sql('DW_ABC_DS','update JOB_STREAM_STEP_RT set STATUS_INFO = \'This job, {job_name()}, does not match the JOB_NAME of the step you are trying to run ($l_job_name).\' &#xA;   #      where MD_PROCESS_ID = {$p_process_id}');&#xA;    raise_exception('ERROR: This job, {job_name()}, does not match the JOB_NAME of the step you are trying to run (' || $l_job_name || ').');&#xA;end&#xA;&#xA;# now flag the job as running&#xD;&#xA;#sql('DW_ABC_DS','update JOB_STREAM_STEP_RT set STATE = \'RUNNING\',&#xA;#JOB_NAME = {job_name()}, START_TIME = convert(datetime,{$l_job_start_date},111)&#xA;#where MD_PROCESS_ID = {$p_process_id}');&#xA;sql('DW_ABC_DS','update JOB_STREAM_STEP_RT set STATE = \'RUNNING\',&#xA;JOB_NAME = {job_name()}, START_TIME = {$l_job_start_date_vchar}&#xA;where MD_PROCESS_ID = {$p_process_id}');&#xA;&#xA;set_env( 'ETL_DEBUG_MODE', $p_debug_mode );&#xA;set_env( 'ETL_BATCH_ID', $p_batch_id);&#xA;set_env( 'ETL_PROCESS_ID', $p_process_id );&#xA;if ( is_set_env( 'ETL_TRACE_LEVEL' ) != 1 )&#xA;begin&#xA;&#x9;set_env( 'ETL_TRACE_LEVEL', 'ALL' );&#xA;end&#xA;&#xA;ETL_PRINT( '********************************' );&#xA;ETL_PRINT( '********************************' );&#xA;ETL_PRINT( '** The Job {job_name()} is starting' || ifthenelse((get_env('ETL_DEBUG_MODE') = '1'), ' in Debug mode', '') || '.');&#xA;ETL_PRINT( '**' );&#xA;ETL_PRINT( '**' );&#xA;&#xA;return (5);&#xA;"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
</DIProperties>
<DIParameters><DIElement paramType="IN_OUT" name="$p_process_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="IN" name="$p_debug_mode" datatype="INT" >
</DIElement>
<DIElement paramType="OUT" name="$p_batch_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$l_previous_process_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_sqltext" datatype="VARCHAR" size="80" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_job_start_date" datatype="DATETIME" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_state" datatype="VARCHAR" size="30" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_job_name" datatype="VARCHAR" size="60" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_job_start_date_vchar" datatype="VARCHAR" size="25" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="DATETIME" />
<DISteps>
<DIAssignmentStep typeId="12" variable="$l_job_start_date" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'select getdate()')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="select getdate()" datatype="VARCHAR" size="16" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$l_job_start_date_vchar" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'select convert(varchar(25),convert(datetime,{$l_job_start_date},111),127)')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="select convert(varchar(25),convert(datetime,{$l_job_start_date},111),127)" datatype="VARCHAR" size="73" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('l_job_start_date_vchar = ' || $l_job_start_date_vchar))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="l_job_start_date_vchar = " datatype="VARCHAR" size="25" />
<VARIABLE_REFERENCE name="$l_job_start_date_vchar" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="(($p_debug_mode IS  NULL ) OR&#xA;   ( not ($p_debug_mode = 1)))" >
<LOGICAL_OP op="OR">
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$p_debug_mode" />
</LOGICAL_OP>
<LOGICAL_OP op="NOT">
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$p_debug_mode" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($p_process_id IS  NULL )" >
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$p_process_id" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('ERROR: $G_PROCESS_ID is not set. If you want to run manually the job, you must set $G_DEBUG_MODE=1')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="ERROR: $G_PROCESS_ID is not set. If you want to run manually the job, you must set $G_DEBUG_MODE=1" datatype="VARCHAR" size="98" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="raise_exception('$G_PROCESS_ID is not set. If you want to run manually the job, you must set $G_DEBUG_MODE=1')" >
<FUNCTION_CALL name="raise_exception"  type="DI" >
<CONSTANT value="$G_PROCESS_ID is not set. If you want to run manually the job, you must set $G_DEBUG_MODE=1" datatype="VARCHAR" size="91" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
<DIAssignmentStep typeId="12" variable="$p_batch_id" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'SELECT MD_BATCH_ID FROM JOB_STREAM_STEP_RT where MD_PROCESS_ID = {$p_process_id}')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="SELECT MD_BATCH_ID FROM JOB_STREAM_STEP_RT where MD_PROCESS_ID = {$p_process_id}" datatype="VARCHAR" size="80" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($p_batch_id IS  NULL )" >
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$p_batch_id" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((('ERROR: Process ' || $p_process_id) || ' not found in STEP_RUNTIME table.'))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="ERROR: Process " datatype="VARCHAR" size="15" />
<VARIABLE_REFERENCE name="$p_process_id" />
</CONCAT>
<CONSTANT value=" not found in STEP_RUNTIME table." datatype="VARCHAR" size="33" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="raise_exception((('process ' || $p_process_id) || ' is not found in STEP_RUNTIME table.'))" >
<FUNCTION_CALL name="raise_exception"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="process " datatype="VARCHAR" size="8" />
<VARIABLE_REFERENCE name="$p_process_id" />
</CONCAT>
<CONSTANT value=" is not found in STEP_RUNTIME table." datatype="VARCHAR" size="36" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
</DIIf>
<DIElse>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($p_process_id IS NOT  NULL )" >
<LOGICAL_OP op="IS NOT NULL">
<VARIABLE_REFERENCE name="$p_process_id" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((((('ERROR: abC usage error detected : $G_DEBUG_MODE is set to ' || $p_debug_mode) || ' but $G_PROCESS_ID is not null (set to ') || $p_process_id) || '). In debug mode Process ID will be allocated by the job and cannot be specified'))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="ERROR: abC usage error detected : $G_DEBUG_MODE is set to " datatype="VARCHAR" size="58" />
<VARIABLE_REFERENCE name="$p_debug_mode" />
</CONCAT>
<CONSTANT value=" but $G_PROCESS_ID is not null (set to " datatype="VARCHAR" size="39" />
</CONCAT>
<VARIABLE_REFERENCE name="$p_process_id" />
</CONCAT>
<CONSTANT value="). In debug mode Process ID will be allocated by the job and cannot be specified" datatype="VARCHAR" size="80" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="raise_exception((((('ERROR: abC usage error detected : $G_DEBUG_MODE is set to ' || $p_debug_mode) || ' but $G_PROCESS_ID is not null (set to ') || $p_process_id) || '). in debug mode Process ID will be allocated by the system and cannot be specified'))" >
<FUNCTION_CALL name="raise_exception"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="ERROR: abC usage error detected : $G_DEBUG_MODE is set to " datatype="VARCHAR" size="58" />
<VARIABLE_REFERENCE name="$p_debug_mode" />
</CONCAT>
<CONSTANT value=" but $G_PROCESS_ID is not null (set to " datatype="VARCHAR" size="39" />
</CONCAT>
<VARIABLE_REFERENCE name="$p_process_id" />
</CONCAT>
<CONSTANT value="). in debug mode Process ID will be allocated by the system and cannot be specified" datatype="VARCHAR" size="83" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'insert into JOB_STREAM_STEP_RT (JOB_NAME, START_TIME, STEP_OWNER, STATE) &#xA;                     VALUES ({job_name()},{$l_job_start_date_vchar}, \'MANUAL\', \'STARTING\')')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="insert into JOB_STREAM_STEP_RT (JOB_NAME, START_TIME, STEP_OWNER, STATE) &#xA;                     VALUES ({job_name()},{$l_job_start_date_vchar}, 'MANUAL', 'STARTING')" datatype="VARCHAR" size="164" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$p_process_id" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'SELECT MD_PROCESS_ID from JOB_STREAM_STEP_RT where JOB_NAME = {job_name()} AND START_TIME = {$l_job_start_date_vchar} AND STEP_OWNER = \'MANUAL\' AND STATE =  \'STARTING\' ')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="SELECT MD_PROCESS_ID from JOB_STREAM_STEP_RT where JOB_NAME = {job_name()} AND START_TIME = {$l_job_start_date_vchar} AND STEP_OWNER = 'MANUAL' AND STATE =  'STARTING' " datatype="VARCHAR" size="168" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('After manual launch, the assigned Process ID is: ' || $p_process_id))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="After manual launch, the assigned Process ID is: " datatype="VARCHAR" size="49" />
<VARIABLE_REFERENCE name="$p_process_id" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$p_batch_id" >
<DIExpression isString="true" expr="0" >
<CONSTANT value="0" datatype="INT" />
</DIExpression>
</DIAssignmentStep>
</DIElse>
</DIIfStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((('Process ' || $p_process_id) || ' retrieved $p_batch_id = {$p_batch_id}'))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="Process " datatype="VARCHAR" size="8" />
<VARIABLE_REFERENCE name="$p_process_id" />
</CONCAT>
<CONSTANT value=" retrieved $p_batch_id = {$p_batch_id}" datatype="VARCHAR" size="38" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$l_state" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'SELECT STATE FROM JOB_STREAM_STEP_RT where MD_PROCESS_ID = {$p_process_id}')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="SELECT STATE FROM JOB_STREAM_STEP_RT where MD_PROCESS_ID = {$p_process_id}" datatype="VARCHAR" size="74" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$l_job_name" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'SELECT JOB_NAME FROM JOB_STREAM_STEP_RT where MD_PROCESS_ID = {$p_process_id}')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="SELECT JOB_NAME FROM JOB_STREAM_STEP_RT where MD_PROCESS_ID = {$p_process_id}" datatype="VARCHAR" size="77" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($l_state != 'STARTING')" >
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$l_state" />
<CONSTANT value="STARTING" datatype="VARCHAR" size="8" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'update JOB_STREAM_STEP_RT set STATUS_INFO = \'Tried to run job, but it is not in a runnable state.\' &#xA;         where MD_PROCESS_ID = {$p_process_id}')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="update JOB_STREAM_STEP_RT set STATUS_INFO = 'Tried to run job, but it is not in a runnable state.' &#xA;         where MD_PROCESS_ID = {$p_process_id}" datatype="VARCHAR" size="146" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="raise_exception('ERROR: This job is not in a runnable state. This may come from Web Service timeout, the job will not execute and a new one will be trigered by ABC (if not already done)')" >
<FUNCTION_CALL name="raise_exception"  type="DI" >
<CONSTANT value="ERROR: This job is not in a runnable state. This may come from Web Service timeout, the job will not execute and a new one will be trigered by ABC (if not already done)" datatype="VARCHAR" size="168" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($l_job_name != job_name())" >
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$l_job_name" />
<FUNCTION_CALL name="job_name"  type="DI" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="raise_exception((('ERROR: This job, {job_name()}, does not match the JOB_NAME of the step you are trying to run (' || $l_job_name) || ').'))" >
<FUNCTION_CALL name="raise_exception"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="ERROR: This job, {job_name()}, does not match the JOB_NAME of the step you are trying to run (" datatype="VARCHAR" size="94" />
<VARIABLE_REFERENCE name="$l_job_name" />
</CONCAT>
<CONSTANT value=")." datatype="VARCHAR" size="2" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'update JOB_STREAM_STEP_RT set STATE = \'RUNNING\',&#xA;JOB_NAME = {job_name()}, START_TIME = {$l_job_start_date_vchar}&#xA;where MD_PROCESS_ID = {$p_process_id}')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="update JOB_STREAM_STEP_RT set STATE = 'RUNNING',&#xA;JOB_NAME = {job_name()}, START_TIME = {$l_job_start_date_vchar}&#xA;where MD_PROCESS_ID = {$p_process_id}" datatype="VARCHAR" size="150" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="set_env('ETL_DEBUG_MODE', $p_debug_mode)" >
<FUNCTION_CALL name="set_env"  type="DI" >
<CONSTANT value="ETL_DEBUG_MODE" datatype="VARCHAR" size="14" />
<VARIABLE_REFERENCE name="$p_debug_mode" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="set_env('ETL_BATCH_ID', $p_batch_id)" >
<FUNCTION_CALL name="set_env"  type="DI" >
<CONSTANT value="ETL_BATCH_ID" datatype="VARCHAR" size="12" />
<VARIABLE_REFERENCE name="$p_batch_id" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="set_env('ETL_PROCESS_ID', $p_process_id)" >
<FUNCTION_CALL name="set_env"  type="DI" >
<CONSTANT value="ETL_PROCESS_ID" datatype="VARCHAR" size="14" />
<VARIABLE_REFERENCE name="$p_process_id" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="(is_set_env('ETL_TRACE_LEVEL') != 1)" >
<LOGICAL_OP op="NE">
<FUNCTION_CALL name="is_set_env"  type="DI" >
<CONSTANT value="ETL_TRACE_LEVEL" datatype="VARCHAR" size="15" />
</FUNCTION_CALL>
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="set_env('ETL_TRACE_LEVEL', 'ALL')" >
<FUNCTION_CALL name="set_env"  type="DI" >
<CONSTANT value="ETL_TRACE_LEVEL" datatype="VARCHAR" size="15" />
<CONSTANT value="ALL" datatype="VARCHAR" size="3" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="********************************" datatype="VARCHAR" size="32" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="********************************" datatype="VARCHAR" size="32" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((('** The Job {job_name()} is starting' || ifthenelse((get_env('ETL_DEBUG_MODE') = '1'), ' in Debug mode', '')) || '.'))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="** The Job {job_name()} is starting" datatype="VARCHAR" size="35" />
<FUNCTION_CALL name="ifthenelse"  type="DI" >
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="get_env"  type="DI" >
<CONSTANT value="ETL_DEBUG_MODE" datatype="VARCHAR" size="14" />
</FUNCTION_CALL>
<CONSTANT value="1" datatype="VARCHAR" size="1" />
</LOGICAL_OP>
<CONSTANT value=" in Debug mode" datatype="VARCHAR" size="14" />
<CONSTANT value="" datatype="VARCHAR" size="0" />
</FUNCTION_CALL>
</CONCAT>
<CONSTANT value="." datatype="VARCHAR" size="1" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**" datatype="VARCHAR" size="2" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**" datatype="VARCHAR" size="2" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr="5" >
<CONSTANT value="5" datatype="INT" />
</DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIScriptFunction name="ABC_STARTWF_FN" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="ETL_PRINT( '        ********************************' );&#xA;ETL_PRINT( '        ********************************' );&#xA;ETL_PRINT( '        ** The workflow [workflow_name()] is starting' );&#xA;ETL_PRINT( '        **   user: ' || system_user_name() );&#xA;ETL_PRINT( '        **   detail name: ' || $p_detailname );&#xA;&#xA;# DELETE EXISTING WORKFLOW RECORD&#xA;#sql('DW_ABC_DS','delete from RDS_DBA.WFEXECUTION_DW&#xA;#where APPNAME = {$p_appname} AND JOBNAME = {job_name()} AND WFNAME = {workflow_name()}&#xA;#AND TARGET_TABLE = {$l_single_tablename}');&#xA;&#xA;# GET MAX_ID FROM THE WFEXECUTION_DW TABLE&#xA;#$job_ maxkey = sql('DW_ABC_DS', 'SELECT MAX(JOB_ID) FROM RDS_DBA.ETLSYNC_DW');&#xA;#$maxkey = $maxkey + 1;&#xA;&#xA;# INSERT WORKFLOW RECORD&#x9;&#x9;&#xD;&#xA;&#xA;#$l_stepdetail_id = sql('DW_ABC_DS','insert into JOB_STREAM_STEP_DETAIL_RT &#xA;#                (MD_PROCESS_ID, DETAIL_NAME, STATUS, START_TIME)  &#xA;#                VALUES ({$p_process_id}, {$p_detailname}, \'RUNNING\', {sysdate()});&#xA;#&#x9;&#x9;&#x9;&#x9;SELECT SCOPE_IDENTITY() AS NewStepDetailID');&#xA;$l_stepdetail_id = sql('DW_ABC_DS','insert into JOB_STREAM_STEP_DETAIL_RT &#xA;                (MD_PROCESS_ID, DETAIL_NAME, STATUS, START_TIME)  &#xA;                VALUES ({$p_process_id}, {$p_detailname}, \'RUNNING\', convert(varchar(25),convert(datetime,getdate(),111),127));&#xA;&#x9;&#x9;&#x9;&#x9;SELECT SCOPE_IDENTITY() AS NewStepDetailID');&#x9;&#xA;&#xA;set_env(workflow_name(), $l_stepdetail_id);&#xA;&#xA;# print('single_tablename = ' || $l_single_tablename);&#x9;   &#x9;&#xA;&#xA;return null;&#xA;"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
</DIProperties>
<DIParameters><DIElement paramType="IN" name="$p_detailname" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="IN" name="$p_process_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$l_stepdetail_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="INT" />
<DISteps>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ********************************" datatype="VARCHAR" size="40" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ********************************" datatype="VARCHAR" size="40" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ** The workflow [workflow_name()] is starting')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ** The workflow [workflow_name()] is starting" datatype="VARCHAR" size="53" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   user: ' || system_user_name()))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   user: " datatype="VARCHAR" size="19" />
<FUNCTION_CALL name="system_user_name"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   detail name: ' || $p_detailname))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   detail name: " datatype="VARCHAR" size="26" />
<VARIABLE_REFERENCE name="$p_detailname" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$l_stepdetail_id" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'insert into JOB_STREAM_STEP_DETAIL_RT &#xA;                (MD_PROCESS_ID, DETAIL_NAME, STATUS, START_TIME)  &#xA;                VALUES ({$p_process_id}, {$p_detailname}, \'RUNNING\', convert(varchar(25),convert(datetime,getdate(),111),127));&#xA;&#x9;&#x9;&#x9;&#x9;SELECT SCOPE_IDENTITY() AS NewStepDetailID')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="insert into JOB_STREAM_STEP_DETAIL_RT &#xA;                (MD_PROCESS_ID, DETAIL_NAME, STATUS, START_TIME)  &#xA;                VALUES ({$p_process_id}, {$p_detailname}, 'RUNNING', convert(varchar(25),convert(datetime,getdate(),111),127));&#xA;&#x9;&#x9;&#x9;&#x9;SELECT SCOPE_IDENTITY() AS NewStepDetailID" datatype="VARCHAR" size="280" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="set_env(workflow_name(), $l_stepdetail_id)" >
<FUNCTION_CALL name="set_env"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$l_stepdetail_id" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIScriptFunction name="CALC_COMPLIANCESTATUS_GROUPS" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="if ($rank is null)&#xD;&#xA;begin&#xA;$rank=0;&#x9;&#xA;end&#xD;&#xA;&#xD;&#xA;if ($p_previous_cp_id = $p_current_cp_id and &#xD;&#xA;&#x9;$p_previous_node = $p_current_node and &#xD;&#xA;&#x9;$p_previous_policy = $p_current_policy  and &#xD;&#xA;&#x9;$p_previous_status = $p_current_status and &#xD;&#xA;&#x9;$p_previous_record_end_date = $p_current_record_start_date)&#xD;&#xA;begin&#xD;&#xA;&#x9;Return $rank;&#xD;&#xA;end &#xD;&#xA;else &#xD;&#xA;begin&#xD;&#xA;&#x9;$rank=$rank+1;&#xD;&#xA;&#x9;Return $rank;&#xD;&#xA;end&#xD;&#xA;"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
<DIAttribute name="Parallelizable" value="no"/>
<DIAttribute name="isScriptValidationFunction" value="no"/>
</DIProperties>
<DIParameters><DIElement paramType="IN" name="$p_previous_node" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="IN" name="$p_current_node" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="IN" name="$p_previous_policy" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="IN" name="$p_current_policy" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="IN" name="$p_previous_status" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="IN" name="$p_current_status" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="IN" name="$p_previous_record_end_date" datatype="DATETIME" >
</DIElement>
<DIElement paramType="IN" name="$p_current_record_start_date" datatype="DATETIME" >
</DIElement>
<DIElement paramType="IN" name="$p_previous_cp_id" datatype="DECIMAL" precision="28" scale="0" >
</DIElement>
<DIElement paramType="IN" name="$p_current_cp_id" datatype="DECIMAL" precision="28" scale="0" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$rank" datatype="INT" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="INT" />
<DISteps>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($rank IS  NULL )" >
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$rank" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$rank" >
<DIExpression isString="true" expr="0" >
<CONSTANT value="0" datatype="INT" />
</DIExpression>
</DIAssignmentStep>
</DIIf>
</DIIfStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="((((($p_previous_cp_id = $p_current_cp_id) AND&#xA;   ($p_previous_node = $p_current_node)) AND&#xA;   ($p_previous_policy = $p_current_policy)) AND&#xA;   ($p_previous_status = $p_current_status)) AND&#xA;   ($p_previous_record_end_date = $p_current_record_start_date))" >
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$p_previous_cp_id" />
<VARIABLE_REFERENCE name="$p_current_cp_id" />
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$p_previous_node" />
<VARIABLE_REFERENCE name="$p_current_node" />
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$p_previous_policy" />
<VARIABLE_REFERENCE name="$p_current_policy" />
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$p_previous_status" />
<VARIABLE_REFERENCE name="$p_current_status" />
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$p_previous_record_end_date" />
<VARIABLE_REFERENCE name="$p_current_record_start_date" />
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr="$rank" >
<VARIABLE_REFERENCE name="$rank" />
</DIExpression>
</DIReturnStep>
</DIIf>
<DIElse>
<DIAssignmentStep typeId="12" variable="$rank" >
<DIExpression isString="true" expr="($rank + 1)" >
<ADD>
<VARIABLE_REFERENCE name="$rank" />
<CONSTANT value="1" datatype="INT" />
</ADD>
</DIExpression>
</DIAssignmentStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr="$rank" >
<VARIABLE_REFERENCE name="$rank" />
</DIExpression>
</DIReturnStep>
</DIElse>
</DIIfStep>
</DISteps>
</DIScriptFunction>
<DIScriptFunction name="DW_DATE_TO_UTC" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="## Converting a date expressed in the locale of the input source product to a date in UTC locale&#xD;&#xA;&#xD;&#xA;$L_DATE_YEAR = year($P_DW_DATE);&#xD;&#xA;$L_INVALID_DATE  = to_date( '12/31/9999', 'MM/DD/YYYY');&#xD;&#xA;if ($L_DATE_YEAR is null or $L_DATE_YEAR &lt;= 1900 or to_char($P_DW_DATE,'MM/DD/YYYY') = to_char($L_INVALID_DATE,'MM/DD/YYYY'))&#xD;&#xA;begin&#xD;&#xA;    $L_UTC_DATE = $P_DW_DATE;&#x9;&#xD;&#xA;end&#xD;&#xA;else&#xD;&#xA;begin &#xD;&#xA;&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;$L_TZ_ID = lookup_ext([DW_METADATA_DS.DW_METADATA_ALIAS.DW_CONFIGURATION,'PRE_LOAD_CACHE','MAX'], [PROPERTY_VALUE],[NULL],[PROPERTY_NAME,'=','dwh.time.zone']) SET (&quot;run_as_separate_process&quot;='no');&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;$L_DUMMY = lookup_ext([DW_METADATA_DS.DW_METADATA_ALIAS.TIMEZONE_INFO,'PRE_LOAD_CACHE','MAX'], [DST_START_DATE_LOC,DST_END_DATE_LOC, BASE_UTC_OFFSET, DST_VALUE],[NULL,NULL,NULL,NULL],[TIMEZONE_ID,'=',$L_TZ_ID ,YEAR_,'=',year( $P_DW_DATE )], [], [$L_START_DT, $L_END_DT, $L_BASE_UTC_OFFSET, $L_DST_VALUE ]) SET (&quot;run_as_separate_process&quot;='no');&#xD;&#xA;$L_OFFSET_IN_MINUTES = ifthenelse($P_DW_DATE &gt;= $L_START_DT and $P_DW_DATE &lt; $L_END_DT, $L_BASE_UTC_OFFSET  + $L_DST_VALUE, $L_BASE_UTC_OFFSET);&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;  if ($L_START_DT is null and $L_END_DT is null and $L_BASE_UTC_OFFSET is null and $L_DST_VALUE is null)&#xD;&#xA;  begin&#xD;&#xA;&#x9;$L_UTC_DATE = $P_DW_DATE;&#xD;&#xA;&#xD;&#xA;&#x9;ETL_PRINT('WARNING: SOURCE_DATE_TO_UTC: No timezone info available for ' || $P_DW_DATE || ' ('|| $L_TZ_ID || '). This date is converted to ' || $L_UTC_DATE || ' (UTC). '   );&#xD;&#xA;    ABC_ADDAUDITMETRIC_FN( workflow_name(),                                                                                                   &#xD;&#xA;                           get_env('ETL_PROCESS_ID'),&#xD;&#xA;                           'SOURCE_DATE_TO_UTC',&#xD;&#xA;                           $P_DW_DATE,&#xD;&#xA;                           'DATE',   &#xD;&#xA;                           'WARNING',&#xD;&#xA;                           'No timezone info available for ' || $L_TZ_ID || ' year ' || $L_DATE_YEAR || ')',&#xD;&#xA;                           'INVALID_DATE',&#xD;&#xA;                           'Date could not be processed, considered as invalid date');&#xD;&#xA;&#xD;&#xA;    #raise_exception('No timezone info available for ' || $L_TZ_ID || ' year ' || $L_DATE_YEAR );&#xD;&#xA;  end&#xD;&#xA;  else&#xD;&#xA;  begin&#xD;&#xA;    $L_UTC_DATE = ifthenelse(($P_DW_DATE is null), null, $P_DW_DATE - num_to_interval($L_OFFSET_IN_MINUTES, 'M'));&#xD;&#xA;  end&#xD;&#xA;end&#xD;&#xA;&#xD;&#xA;#$L_TZ_ID = sql('DW_METADATA_DS','SELECT DISTINCT TimeZone FROM dwmetadata.DataSourceConnection WHERE ProductName = {$P_SOURCE_IDENTIFIER}');&#xD;&#xA;#ETL_PRINT('SOURCE_DATE_TO_UTC: INPUT ' || $P_DW_DATE || ' ('|| $L_TZ_ID || ') -&gt; ' || $L_UTC_DATE || ' (UTC). This is an  offset of ' || $L_OFFSET_IN_MINUTES || ' minutes '   );&#xD;&#xA;&#xD;&#xA;return $L_UTC_DATE;"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
<DIAttribute name="Parallelizable" value="no"/>
<DIAttribute name="isScriptValidationFunction" value="no"/>
</DIProperties>
<DIParameters><DIElement paramType="IN" name="$P_DW_DATE" datatype="DATETIME" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$L_UTC_DATE" datatype="DATETIME" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_OFFSET_IN_MINUTES" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_TZ_ID" datatype="VARCHAR" size="255" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_DATE_YEAR" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_INVALID_DATE" datatype="DATETIME" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_START_DT" datatype="DATETIME" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_END_DT" datatype="DATETIME" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_BASE_UTC_OFFSET" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_DST_VALUE" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_DUMMY" datatype="VARCHAR" size="100" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="DATETIME" />
<DISteps>
<DIAssignmentStep typeId="12" variable="$L_DATE_YEAR" >
<DIExpression isString="true" expr="year($P_DW_DATE)" >
<FUNCTION_CALL name="year"  type="DI" >
<VARIABLE_REFERENCE name="$P_DW_DATE" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_INVALID_DATE" >
<DIExpression isString="true" expr="to_date('12/31/9999', 'MM/DD/YYYY')" >
<FUNCTION_CALL name="to_date"  type="DI" >
<CONSTANT value="12/31/9999" datatype="VARCHAR" size="10" />
<CONSTANT value="MM/DD/YYYY" datatype="VARCHAR" size="10" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="((($L_DATE_YEAR IS  NULL ) OR&#xA;   ($L_DATE_YEAR &lt;= 1900)) OR&#xA;   (to_char($P_DW_DATE, 'MM/DD/YYYY') = to_char($L_INVALID_DATE, 'MM/DD/YYYY')))" >
<LOGICAL_OP op="OR">
<LOGICAL_OP op="OR">
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$L_DATE_YEAR" />
</LOGICAL_OP>
<LOGICAL_OP op="LE">
<VARIABLE_REFERENCE name="$L_DATE_YEAR" />
<CONSTANT value="1900" datatype="INT" />
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="to_char"  type="DI" >
<VARIABLE_REFERENCE name="$P_DW_DATE" />
<CONSTANT value="MM/DD/YYYY" datatype="VARCHAR" size="10" />
</FUNCTION_CALL>
<FUNCTION_CALL name="to_char"  type="DI" >
<VARIABLE_REFERENCE name="$L_INVALID_DATE" />
<CONSTANT value="MM/DD/YYYY" datatype="VARCHAR" size="10" />
</FUNCTION_CALL>
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$L_UTC_DATE" >
<DIExpression isString="true" expr="$P_DW_DATE" >
<VARIABLE_REFERENCE name="$P_DW_DATE" />
</DIExpression>
</DIAssignmentStep>
</DIIf>
<DIElse>
<DIAssignmentStep typeId="12" variable="$L_TZ_ID" >
<DIExpression isString="true" expr="lookup_ext([DW_METADATA_DS.DW_METADATA_ALIAS.DW_CONFIGURATION, 'PRE_LOAD_CACHE', 'MAX'], [ PROPERTY_VALUE ], [  NULL  ], [ PROPERTY_NAME, '=', 'dwh.time.zone' ]) &#xA;SET(&quot;run_as_separate_process&quot; = 'no')&#xA;" >
<FUNCTION_CALL name="lookup_ext"  type="DI" tableDatastore="DW_METADATA_DS" tableOwner="DW_METADATA_ALIAS" tableName="DW_CONFIGURATION" >
<CONSTANT value="PRE_LOAD_CACHE" datatype="VARCHAR" size="14" />
<CONSTANT value="MAX" datatype="VARCHAR" size="3" />
<CONSTANT value="dwh.time.zone" datatype="VARCHAR" size="13" />
<CONSTANT_NULL /><DIAttributes>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_DUMMY" >
<DIExpression isString="true" expr="lookup_ext([DW_METADATA_DS.DW_METADATA_ALIAS.TIMEZONE_INFO, 'PRE_LOAD_CACHE', 'MAX'], [ DST_START_DATE_LOC, DST_END_DATE_LOC, BASE_UTC_OFFSET, DST_VALUE ], [  NULL ,  NULL ,  NULL ,  NULL  ], [ TIMEZONE_ID, '=', $L_TZ_ID, YEAR_, '=', year($P_DW_DATE) ], [  ], [ $L_START_DT, $L_END_DT, $L_BASE_UTC_OFFSET, $L_DST_VALUE ]) &#xA;SET(&quot;run_as_separate_process&quot; = 'no')&#xA;" >
<FUNCTION_CALL name="lookup_ext"  type="DI" tableDatastore="DW_METADATA_DS" tableOwner="DW_METADATA_ALIAS" tableName="TIMEZONE_INFO" >
<CONSTANT value="PRE_LOAD_CACHE" datatype="VARCHAR" size="14" />
<CONSTANT value="MAX" datatype="VARCHAR" size="3" />
<VARIABLE_REFERENCE name="$L_TZ_ID" />
<FUNCTION_CALL name="year"  type="DI" >
<VARIABLE_REFERENCE name="$P_DW_DATE" />
</FUNCTION_CALL>
<CONSTANT_NULL /><CONSTANT_NULL /><CONSTANT_NULL /><CONSTANT_NULL /><VARIABLE_REFERENCE name="$L_START_DT" />
<VARIABLE_REFERENCE name="$L_END_DT" />
<VARIABLE_REFERENCE name="$L_BASE_UTC_OFFSET" />
<VARIABLE_REFERENCE name="$L_DST_VALUE" />
<DIAttributes>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_OFFSET_IN_MINUTES" >
<DIExpression isString="true" expr="ifthenelse((($P_DW_DATE &gt;= $L_START_DT) AND&#xA;   ($P_DW_DATE &lt; $L_END_DT)), ($L_BASE_UTC_OFFSET + $L_DST_VALUE), $L_BASE_UTC_OFFSET)" >
<FUNCTION_CALL name="ifthenelse"  type="DI" >
<LOGICAL_OP op="AND">
<LOGICAL_OP op="GE">
<VARIABLE_REFERENCE name="$P_DW_DATE" />
<VARIABLE_REFERENCE name="$L_START_DT" />
</LOGICAL_OP>
<LOGICAL_OP op="LT">
<VARIABLE_REFERENCE name="$P_DW_DATE" />
<VARIABLE_REFERENCE name="$L_END_DT" />
</LOGICAL_OP>
</LOGICAL_OP>
<ADD>
<VARIABLE_REFERENCE name="$L_BASE_UTC_OFFSET" />
<VARIABLE_REFERENCE name="$L_DST_VALUE" />
</ADD>
<VARIABLE_REFERENCE name="$L_BASE_UTC_OFFSET" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="(((($L_START_DT IS  NULL ) AND&#xA;   ($L_END_DT IS  NULL )) AND&#xA;   ($L_BASE_UTC_OFFSET IS  NULL )) AND&#xA;   ($L_DST_VALUE IS  NULL ))" >
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$L_START_DT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$L_END_DT" />
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$L_BASE_UTC_OFFSET" />
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$L_DST_VALUE" />
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$L_UTC_DATE" >
<DIExpression isString="true" expr="$P_DW_DATE" >
<VARIABLE_REFERENCE name="$P_DW_DATE" />
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((((((('WARNING: SOURCE_DATE_TO_UTC: No timezone info available for ' || $P_DW_DATE) || ' (') || $L_TZ_ID) || '). This date is converted to ') || $L_UTC_DATE) || ' (UTC). '))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="WARNING: SOURCE_DATE_TO_UTC: No timezone info available for " datatype="VARCHAR" size="60" />
<VARIABLE_REFERENCE name="$P_DW_DATE" />
</CONCAT>
<CONSTANT value=" (" datatype="VARCHAR" size="2" />
</CONCAT>
<VARIABLE_REFERENCE name="$L_TZ_ID" />
</CONCAT>
<CONSTANT value="). This date is converted to " datatype="VARCHAR" size="29" />
</CONCAT>
<VARIABLE_REFERENCE name="$L_UTC_DATE" />
</CONCAT>
<CONSTANT value=" (UTC). " datatype="VARCHAR" size="8" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_addauditmetric_fn(workflow_name(), get_env('ETL_PROCESS_ID'), 'SOURCE_DATE_TO_UTC', $P_DW_DATE, 'DATE', 'WARNING', (((('No timezone info available for ' || $L_TZ_ID) || ' year ') || $L_DATE_YEAR) || ')'), 'INVALID_DATE', 'Date could not be processed, considered as invalid date')" >
<FUNCTION_CALL name="abc_addauditmetric_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<FUNCTION_CALL name="get_env"  type="DI" >
<CONSTANT value="ETL_PROCESS_ID" datatype="VARCHAR" size="14" />
</FUNCTION_CALL>
<CONSTANT value="SOURCE_DATE_TO_UTC" datatype="VARCHAR" size="18" />
<VARIABLE_REFERENCE name="$P_DW_DATE" />
<CONSTANT value="DATE" datatype="VARCHAR" size="4" />
<CONSTANT value="WARNING" datatype="VARCHAR" size="7" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="No timezone info available for " datatype="VARCHAR" size="31" />
<VARIABLE_REFERENCE name="$L_TZ_ID" />
</CONCAT>
<CONSTANT value=" year " datatype="VARCHAR" size="6" />
</CONCAT>
<VARIABLE_REFERENCE name="$L_DATE_YEAR" />
</CONCAT>
<CONSTANT value=")" datatype="VARCHAR" size="1" />
</CONCAT>
<CONSTANT value="INVALID_DATE" datatype="VARCHAR" size="12" />
<CONSTANT value="Date could not be processed, considered as invalid date" datatype="VARCHAR" size="55" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
<DIAssignmentStep typeId="12" variable="$L_UTC_DATE" >
<DIExpression isString="true" expr="ifthenelse(($P_DW_DATE IS  NULL ),  NULL , ($P_DW_DATE - num_to_interval($L_OFFSET_IN_MINUTES, 'M')))" >
<FUNCTION_CALL name="ifthenelse"  type="DI" >
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$P_DW_DATE" />
</LOGICAL_OP>
<CONSTANT_NULL /><SUBTRACT>
<VARIABLE_REFERENCE name="$P_DW_DATE" />
<FUNCTION_CALL name="num_to_interval"  type="DI" >
<VARIABLE_REFERENCE name="$L_OFFSET_IN_MINUTES" />
<CONSTANT value="M" datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</SUBTRACT>
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
</DIElse>
</DIIfStep>
</DIElse>
</DIIfStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr="$L_UTC_DATE" >
<VARIABLE_REFERENCE name="$L_UTC_DATE" />
</DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIScriptFunction name="ETL_PRINT" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="# 1/2 Retrieve contextual information from the environment&#xA;if ( is_set_env( 'ETL_BATCH_ID' ) = 1 )&#xA;begin&#xA;&#x9;$l_batch_id = get_env( 'ETL_BATCH_ID' );&#xA;end&#xA;else&#xA;begin&#xA;&#x9;$l_batch_id = '-';&#xA;end&#xA;&#xA;if ( is_set_env( 'ETL_PROCESS_ID' ) = 1 )&#xA;begin&#xA;&#x9;$l_process_id = get_env( 'ETL_PROCESS_ID' );&#x9;&#xA;end&#xA;else&#xA;begin&#xA;&#x9;$l_process_id = '-';&#x9;&#xA;end&#xA;&#xA;# 2/2 Really print&#xA;if ( get_env('ETL_TRACE_LEVEL') = 'ALL' )&#xA;begin&#xA;&#x9;if ( is_set_env( workflow_name() ) = 1 )&#xA;&#x9;begin&#xA;&#x9;&#x9;$l_stepdetail_id = get_env( workflow_name() );&#xA;&#x9;&#x9;print( '\[Batch:' || $l_batch_id || '\] \[Proc:' || $l_process_id || '\] \[Detail:' || $l_stepdetail_id || '\] ' || $p_MESSAGE );&#xA;&#x9;end&#xA;&#x9;else&#xA;&#x9;begin&#xA;    &#x9;print( '\[Batch:' || $l_batch_id || '\] \[Proc:' || $l_process_id || '\] ' || $p_MESSAGE );&#xA;&#x9;end&#xA;end&#xA;&#xA;return null;&#xA;"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
<DIAttribute name="Description" value="This function is internal and should NOT be used by application developers.&#xA;&#xA;This function prints the parameter message to the logs with contextual information (batch id, process id) as set by the ABC_STARTJB_FN function.&#xA;&#xA;This trace file is currently the standard Data Services trace file. for instance: C:\Program Files\Business Objects\BusinessObjects Data Services\log\tracelog.txt"/>
<DIAttribute name="Parallelizable" value="no"/>
<DIAttribute name="isScriptValidationFunction" value="no"/>
</DIProperties>
<DIParameters><DIElement paramType="IN" name="$p_MESSAGE" datatype="VARCHAR" size="256" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$l_batch_id" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_process_id" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_stepdetail_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="INT" />
<DISteps>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="(is_set_env('ETL_BATCH_ID') = 1)" >
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="is_set_env"  type="DI" >
<CONSTANT value="ETL_BATCH_ID" datatype="VARCHAR" size="12" />
</FUNCTION_CALL>
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$l_batch_id" >
<DIExpression isString="true" expr="get_env('ETL_BATCH_ID')" >
<FUNCTION_CALL name="get_env"  type="DI" >
<CONSTANT value="ETL_BATCH_ID" datatype="VARCHAR" size="12" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
</DIIf>
<DIElse>
<DIAssignmentStep typeId="12" variable="$l_batch_id" >
<DIExpression isString="true" expr="'-'" >
<CONSTANT value="-" datatype="VARCHAR" size="1" />
</DIExpression>
</DIAssignmentStep>
</DIElse>
</DIIfStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="(is_set_env('ETL_PROCESS_ID') = 1)" >
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="is_set_env"  type="DI" >
<CONSTANT value="ETL_PROCESS_ID" datatype="VARCHAR" size="14" />
</FUNCTION_CALL>
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$l_process_id" >
<DIExpression isString="true" expr="get_env('ETL_PROCESS_ID')" >
<FUNCTION_CALL name="get_env"  type="DI" >
<CONSTANT value="ETL_PROCESS_ID" datatype="VARCHAR" size="14" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
</DIIf>
<DIElse>
<DIAssignmentStep typeId="12" variable="$l_process_id" >
<DIExpression isString="true" expr="'-'" >
<CONSTANT value="-" datatype="VARCHAR" size="1" />
</DIExpression>
</DIAssignmentStep>
</DIElse>
</DIIfStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="(get_env('ETL_TRACE_LEVEL') = 'ALL')" >
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="get_env"  type="DI" >
<CONSTANT value="ETL_TRACE_LEVEL" datatype="VARCHAR" size="15" />
</FUNCTION_CALL>
<CONSTANT value="ALL" datatype="VARCHAR" size="3" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="(is_set_env(workflow_name()) = 1)" >
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="is_set_env"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</FUNCTION_CALL>
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$l_stepdetail_id" >
<DIExpression isString="true" expr="get_env(workflow_name())" >
<FUNCTION_CALL name="get_env"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(((((((('\\[Batch:' || $l_batch_id) || '\\] \\[Proc:') || $l_process_id) || '\\] \\[Detail:') || $l_stepdetail_id) || '\\] ') || $p_MESSAGE))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="\[Batch:" datatype="VARCHAR" size="8" />
<VARIABLE_REFERENCE name="$l_batch_id" />
</CONCAT>
<CONSTANT value="\] \[Proc:" datatype="VARCHAR" size="10" />
</CONCAT>
<VARIABLE_REFERENCE name="$l_process_id" />
</CONCAT>
<CONSTANT value="\] \[Detail:" datatype="VARCHAR" size="12" />
</CONCAT>
<VARIABLE_REFERENCE name="$l_stepdetail_id" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<VARIABLE_REFERENCE name="$p_MESSAGE" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(((((('\\[Batch:' || $l_batch_id) || '\\] \\[Proc:') || $l_process_id) || '\\] ') || $p_MESSAGE))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="\[Batch:" datatype="VARCHAR" size="8" />
<VARIABLE_REFERENCE name="$l_batch_id" />
</CONCAT>
<CONSTANT value="\] \[Proc:" datatype="VARCHAR" size="10" />
</CONCAT>
<VARIABLE_REFERENCE name="$l_process_id" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<VARIABLE_REFERENCE name="$p_MESSAGE" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIElse>
</DIIfStep>
</DIIf>
<DIElse>
</DIElse>
</DIIfStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIScriptFunction name="SOURCE_DATE_TO_UTC" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="## Converting a date expressed in the locale of the input source product to a date in UTC locale&#xD;&#xA;&#xD;&#xA;$L_DATE_YEAR = year($P_LOC_DATE);&#xD;&#xA;$L_INVALID_DATE  = to_date( '12/31/9999', 'MM/DD/YYYY');&#xD;&#xA;if ($L_DATE_YEAR is null or $L_DATE_YEAR &lt;= 1900 or to_char($P_LOC_DATE,'MM/DD/YYYY') = to_char($L_INVALID_DATE,'MM/DD/YYYY'))&#xD;&#xA;begin&#xD;&#xA;    $L_UTC_DATE = $P_LOC_DATE;&#x9;&#xD;&#xA;end&#xD;&#xA;else&#xD;&#xA;begin&#xD;&#xA;&#xD;&#xA;$L_TZ_ID = lookup_ext([DW_METADATA_DS.DW_METADATA_ALIAS.DataSourceConnection,'PRE_LOAD_CACHE','MAX'], [TimeZone],[NULL],[CP_ID,'=',$p_content_pack_id]) SET (&quot;run_as_separate_process&quot;='no');&#xD;&#xA;&#xD;&#xA;if ($L_TZ_ID is null or $L_TZ_ID = '')&#xD;&#xA;begin&#xD;&#xA;&#xD;&#xA;&#x9;$L_TZ_ID = lookup_ext([DW_METADATA_DS.DW_METADATA_ALIAS.DW_CONFIGURATION,'PRE_LOAD_CACHE','MAX'], [PROPERTY_VALUE],[NULL],[PROPERTY_NAME,'=','dwh.time.zone']) SET (&quot;run_as_separate_process&quot;='no');&#xD;&#xA;end &#xD;&#xA;&#xD;&#xA;&#xD;&#xA;$L_DUMMY = lookup_ext([DW_METADATA_DS.DW_METADATA_ALIAS.TIMEZONE_INFO,'PRE_LOAD_CACHE','MAX'], [DST_START_DATE_LOC,DST_END_DATE_LOC, BASE_UTC_OFFSET, DST_VALUE],[NULL,NULL,NULL,NULL],[TIMEZONE_ID,'=',$L_TZ_ID ,YEAR_,'=',year( $P_LOC_DATE )], [], [$L_START_DT, $L_END_DT, $L_BASE_UTC_OFFSET, $L_DST_VALUE ]) SET (&quot;run_as_separate_process&quot;='no');&#xD;&#xA;&#xD;&#xA;$L_OFFSET_IN_MINUTES = ifthenelse($P_LOC_DATE &gt;= $L_START_DT and $P_LOC_DATE &lt; $L_END_DT, $L_BASE_UTC_OFFSET  + $L_DST_VALUE, $L_BASE_UTC_OFFSET);&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;  if ($L_START_DT is null and $L_END_DT is null and $L_BASE_UTC_OFFSET is null and $L_DST_VALUE is null)&#xD;&#xA;  begin&#xD;&#xA;    #$L_TZ_ID = sql('DW_METADATA_DS','SELECT DISTINCT TimeZone FROM dwmetadata.DataSourceConnection WHERE ProductName = {$P_SOURCE_IDENTIFIER}');&#xD;&#xA;&#x9;#$L_UTC_DATE = $L_INVALID_DATE;&#xD;&#xA;&#x9;$L_UTC_DATE = $P_LOC_DATE;&#xD;&#xA;&#xD;&#xA;&#x9;ETL_PRINT('WARNING: SOURCE_DATE_TO_UTC: No timezone info available for ' || $P_LOC_DATE || ' ('|| $L_TZ_ID || '). This date is converted to ' || $L_UTC_DATE || ' (UTC). '   );&#xD;&#xA;    ABC_ADDAUDITMETRIC_FN( workflow_name(),                                                                                                   &#xD;&#xA;                           get_env('ETL_PROCESS_ID'),&#xD;&#xA;                           'SOURCE_DATE_TO_UTC',&#xD;&#xA;                           $P_LOC_DATE,&#xD;&#xA;                           'DATE',   &#xD;&#xA;                           'WARNING',&#xD;&#xA;                           'No timezone info available for ' || $L_TZ_ID || ' year ' || $L_DATE_YEAR || ' (needed by CP ID' ||$p_content_pack_id|| ')',&#xD;&#xA;                           'INVALID_DATE',&#xD;&#xA;                           'Date could not be processed, considered as invalid date');&#xD;&#xA;&#xD;&#xA;    #raise_exception('No timezone info available for ' || $L_TZ_ID || ' year ' || $L_DATE_YEAR );&#xD;&#xA;  end&#xD;&#xA;  else&#xD;&#xA;  begin&#xD;&#xA;    $L_UTC_DATE = ifthenelse(($P_LOC_DATE is null), null, $P_LOC_DATE - num_to_interval($L_OFFSET_IN_MINUTES, 'M'));&#xD;&#xA;  end&#xD;&#xA;end&#xD;&#xA;&#xD;&#xA;#$L_TZ_ID = sql('DW_METADATA_DS','SELECT DISTINCT TimeZone FROM dwmetadata.DataSourceConnection WHERE ProductName = {$P_SOURCE_IDENTIFIER}');&#xD;&#xA;#ETL_PRINT('SOURCE_DATE_TO_UTC: INPUT ' || $P_LOC_DATE || ' ('|| $L_TZ_ID || ') -&gt; ' || $L_UTC_DATE || ' (UTC). This is an  offset of ' || $L_OFFSET_IN_MINUTES || ' minutes '   );&#xD;&#xA;&#xD;&#xA;return $L_UTC_DATE;"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
<DIAttribute name="Parallelizable" value="no"/>
<DIAttribute name="isScriptValidationFunction" value="no"/>
</DIProperties>
<DIParameters><DIElement paramType="IN" name="$P_LOC_DATE" datatype="DATETIME" >
</DIElement>
<DIElement paramType="IN" name="$p_content_pack_id" datatype="INT" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$L_UTC_DATE" datatype="DATETIME" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_OFFSET_IN_MINUTES" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_TZ_ID" datatype="VARCHAR" size="255" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_DATE_YEAR" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_INVALID_DATE" datatype="DATETIME" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_START_DT" datatype="DATETIME" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_END_DT" datatype="DATETIME" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_BASE_UTC_OFFSET" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_DST_VALUE" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_DUMMY" datatype="VARCHAR" size="100" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="DATETIME" />
<DISteps>
<DIAssignmentStep typeId="12" variable="$L_DATE_YEAR" >
<DIExpression isString="true" expr="year($P_LOC_DATE)" >
<FUNCTION_CALL name="year"  type="DI" >
<VARIABLE_REFERENCE name="$P_LOC_DATE" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_INVALID_DATE" >
<DIExpression isString="true" expr="to_date('12/31/9999', 'MM/DD/YYYY')" >
<FUNCTION_CALL name="to_date"  type="DI" >
<CONSTANT value="12/31/9999" datatype="VARCHAR" size="10" />
<CONSTANT value="MM/DD/YYYY" datatype="VARCHAR" size="10" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="((($L_DATE_YEAR IS  NULL ) OR&#xA;   ($L_DATE_YEAR &lt;= 1900)) OR&#xA;   (to_char($P_LOC_DATE, 'MM/DD/YYYY') = to_char($L_INVALID_DATE, 'MM/DD/YYYY')))" >
<LOGICAL_OP op="OR">
<LOGICAL_OP op="OR">
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$L_DATE_YEAR" />
</LOGICAL_OP>
<LOGICAL_OP op="LE">
<VARIABLE_REFERENCE name="$L_DATE_YEAR" />
<CONSTANT value="1900" datatype="INT" />
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="to_char"  type="DI" >
<VARIABLE_REFERENCE name="$P_LOC_DATE" />
<CONSTANT value="MM/DD/YYYY" datatype="VARCHAR" size="10" />
</FUNCTION_CALL>
<FUNCTION_CALL name="to_char"  type="DI" >
<VARIABLE_REFERENCE name="$L_INVALID_DATE" />
<CONSTANT value="MM/DD/YYYY" datatype="VARCHAR" size="10" />
</FUNCTION_CALL>
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$L_UTC_DATE" >
<DIExpression isString="true" expr="$P_LOC_DATE" >
<VARIABLE_REFERENCE name="$P_LOC_DATE" />
</DIExpression>
</DIAssignmentStep>
</DIIf>
<DIElse>
<DIAssignmentStep typeId="12" variable="$L_TZ_ID" >
<DIExpression isString="true" expr="lookup_ext([DW_METADATA_DS.DW_METADATA_ALIAS.DataSourceConnection, 'PRE_LOAD_CACHE', 'MAX'], [ TimeZone ], [  NULL  ], [ CP_ID, '=', $p_content_pack_id ]) &#xA;SET(&quot;run_as_separate_process&quot; = 'no')&#xA;" >
<FUNCTION_CALL name="lookup_ext"  type="DI" tableDatastore="DW_METADATA_DS" tableOwner="DW_METADATA_ALIAS" tableName="DataSourceConnection" >
<CONSTANT value="PRE_LOAD_CACHE" datatype="VARCHAR" size="14" />
<CONSTANT value="MAX" datatype="VARCHAR" size="3" />
<VARIABLE_REFERENCE name="$p_content_pack_id" />
<CONSTANT_NULL /><DIAttributes>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="(($L_TZ_ID IS  NULL ) OR&#xA;   ($L_TZ_ID = ''))" >
<LOGICAL_OP op="OR">
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$L_TZ_ID" />
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$L_TZ_ID" />
<CONSTANT value="" datatype="VARCHAR" size="0" />
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$L_TZ_ID" >
<DIExpression isString="true" expr="lookup_ext([DW_METADATA_DS.DW_METADATA_ALIAS.DW_CONFIGURATION, 'PRE_LOAD_CACHE', 'MAX'], [ PROPERTY_VALUE ], [  NULL  ], [ PROPERTY_NAME, '=', 'dwh.time.zone' ]) &#xA;SET(&quot;run_as_separate_process&quot; = 'no')&#xA;" >
<FUNCTION_CALL name="lookup_ext"  type="DI" tableDatastore="DW_METADATA_DS" tableOwner="DW_METADATA_ALIAS" tableName="DW_CONFIGURATION" >
<CONSTANT value="PRE_LOAD_CACHE" datatype="VARCHAR" size="14" />
<CONSTANT value="MAX" datatype="VARCHAR" size="3" />
<CONSTANT value="dwh.time.zone" datatype="VARCHAR" size="13" />
<CONSTANT_NULL /><DIAttributes>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
</DIIf>
</DIIfStep>
<DIAssignmentStep typeId="12" variable="$L_DUMMY" >
<DIExpression isString="true" expr="lookup_ext([DW_METADATA_DS.DW_METADATA_ALIAS.TIMEZONE_INFO, 'PRE_LOAD_CACHE', 'MAX'], [ DST_START_DATE_LOC, DST_END_DATE_LOC, BASE_UTC_OFFSET, DST_VALUE ], [  NULL ,  NULL ,  NULL ,  NULL  ], [ TIMEZONE_ID, '=', $L_TZ_ID, YEAR_, '=', year($P_LOC_DATE) ], [  ], [ $L_START_DT, $L_END_DT, $L_BASE_UTC_OFFSET, $L_DST_VALUE ]) &#xA;SET(&quot;run_as_separate_process&quot; = 'no')&#xA;" >
<FUNCTION_CALL name="lookup_ext"  type="DI" tableDatastore="DW_METADATA_DS" tableOwner="DW_METADATA_ALIAS" tableName="TIMEZONE_INFO" >
<CONSTANT value="PRE_LOAD_CACHE" datatype="VARCHAR" size="14" />
<CONSTANT value="MAX" datatype="VARCHAR" size="3" />
<VARIABLE_REFERENCE name="$L_TZ_ID" />
<FUNCTION_CALL name="year"  type="DI" >
<VARIABLE_REFERENCE name="$P_LOC_DATE" />
</FUNCTION_CALL>
<CONSTANT_NULL /><CONSTANT_NULL /><CONSTANT_NULL /><CONSTANT_NULL /><VARIABLE_REFERENCE name="$L_START_DT" />
<VARIABLE_REFERENCE name="$L_END_DT" />
<VARIABLE_REFERENCE name="$L_BASE_UTC_OFFSET" />
<VARIABLE_REFERENCE name="$L_DST_VALUE" />
<DIAttributes>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_OFFSET_IN_MINUTES" >
<DIExpression isString="true" expr="ifthenelse((($P_LOC_DATE &gt;= $L_START_DT) AND&#xA;   ($P_LOC_DATE &lt; $L_END_DT)), ($L_BASE_UTC_OFFSET + $L_DST_VALUE), $L_BASE_UTC_OFFSET)" >
<FUNCTION_CALL name="ifthenelse"  type="DI" >
<LOGICAL_OP op="AND">
<LOGICAL_OP op="GE">
<VARIABLE_REFERENCE name="$P_LOC_DATE" />
<VARIABLE_REFERENCE name="$L_START_DT" />
</LOGICAL_OP>
<LOGICAL_OP op="LT">
<VARIABLE_REFERENCE name="$P_LOC_DATE" />
<VARIABLE_REFERENCE name="$L_END_DT" />
</LOGICAL_OP>
</LOGICAL_OP>
<ADD>
<VARIABLE_REFERENCE name="$L_BASE_UTC_OFFSET" />
<VARIABLE_REFERENCE name="$L_DST_VALUE" />
</ADD>
<VARIABLE_REFERENCE name="$L_BASE_UTC_OFFSET" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="(((($L_START_DT IS  NULL ) AND&#xA;   ($L_END_DT IS  NULL )) AND&#xA;   ($L_BASE_UTC_OFFSET IS  NULL )) AND&#xA;   ($L_DST_VALUE IS  NULL ))" >
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$L_START_DT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$L_END_DT" />
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$L_BASE_UTC_OFFSET" />
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$L_DST_VALUE" />
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$L_UTC_DATE" >
<DIExpression isString="true" expr="$P_LOC_DATE" >
<VARIABLE_REFERENCE name="$P_LOC_DATE" />
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((((((('WARNING: SOURCE_DATE_TO_UTC: No timezone info available for ' || $P_LOC_DATE) || ' (') || $L_TZ_ID) || '). This date is converted to ') || $L_UTC_DATE) || ' (UTC). '))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="WARNING: SOURCE_DATE_TO_UTC: No timezone info available for " datatype="VARCHAR" size="60" />
<VARIABLE_REFERENCE name="$P_LOC_DATE" />
</CONCAT>
<CONSTANT value=" (" datatype="VARCHAR" size="2" />
</CONCAT>
<VARIABLE_REFERENCE name="$L_TZ_ID" />
</CONCAT>
<CONSTANT value="). This date is converted to " datatype="VARCHAR" size="29" />
</CONCAT>
<VARIABLE_REFERENCE name="$L_UTC_DATE" />
</CONCAT>
<CONSTANT value=" (UTC). " datatype="VARCHAR" size="8" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_addauditmetric_fn(workflow_name(), get_env('ETL_PROCESS_ID'), 'SOURCE_DATE_TO_UTC', $P_LOC_DATE, 'DATE', 'WARNING', (((((('No timezone info available for ' || $L_TZ_ID) || ' year ') || $L_DATE_YEAR) || ' (needed by CP ID') || $p_content_pack_id) || ')'), 'INVALID_DATE', 'Date could not be processed, considered as invalid date')" >
<FUNCTION_CALL name="abc_addauditmetric_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<FUNCTION_CALL name="get_env"  type="DI" >
<CONSTANT value="ETL_PROCESS_ID" datatype="VARCHAR" size="14" />
</FUNCTION_CALL>
<CONSTANT value="SOURCE_DATE_TO_UTC" datatype="VARCHAR" size="18" />
<VARIABLE_REFERENCE name="$P_LOC_DATE" />
<CONSTANT value="DATE" datatype="VARCHAR" size="4" />
<CONSTANT value="WARNING" datatype="VARCHAR" size="7" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="No timezone info available for " datatype="VARCHAR" size="31" />
<VARIABLE_REFERENCE name="$L_TZ_ID" />
</CONCAT>
<CONSTANT value=" year " datatype="VARCHAR" size="6" />
</CONCAT>
<VARIABLE_REFERENCE name="$L_DATE_YEAR" />
</CONCAT>
<CONSTANT value=" (needed by CP ID" datatype="VARCHAR" size="17" />
</CONCAT>
<VARIABLE_REFERENCE name="$p_content_pack_id" />
</CONCAT>
<CONSTANT value=")" datatype="VARCHAR" size="1" />
</CONCAT>
<CONSTANT value="INVALID_DATE" datatype="VARCHAR" size="12" />
<CONSTANT value="Date could not be processed, considered as invalid date" datatype="VARCHAR" size="55" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
<DIAssignmentStep typeId="12" variable="$L_UTC_DATE" >
<DIExpression isString="true" expr="ifthenelse(($P_LOC_DATE IS  NULL ),  NULL , ($P_LOC_DATE - num_to_interval($L_OFFSET_IN_MINUTES, 'M')))" >
<FUNCTION_CALL name="ifthenelse"  type="DI" >
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$P_LOC_DATE" />
</LOGICAL_OP>
<CONSTANT_NULL /><SUBTRACT>
<VARIABLE_REFERENCE name="$P_LOC_DATE" />
<FUNCTION_CALL name="num_to_interval"  type="DI" >
<VARIABLE_REFERENCE name="$L_OFFSET_IN_MINUTES" />
<CONSTANT value="M" datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</SUBTRACT>
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
</DIElse>
</DIIfStep>
</DIElse>
</DIIfStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr="$L_UTC_DATE" >
<VARIABLE_REFERENCE name="$L_UTC_DATE" />
</DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIScriptFunction name="UTC_DATE_TO_DW" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="## Converting a date expressed in UTC to a date expressed in the locale of the datawharehouse platform&#xA;&#xA;$L_DATE_YEAR = year($P_UTC_DATE);&#xA;$L_INVALID_DATE  = to_date( '12/31/9999', 'MM/DD/YYYY');&#xA;&#xA;if ($L_DATE_YEAR is null or $L_DATE_YEAR &lt;= 1900 or to_char($P_UTC_DATE,'MM/DD/YYYY') = to_char($L_INVALID_DATE,'MM/DD/YYYY'))&#xA;begin&#xA;    $L_DW_DATE = $P_UTC_DATE;&#x9;&#xA;end&#xA;else&#xA;begin&#xD;&#xA;&#xD;&#xA;&#x9;$L_TZ_ID = lookup_ext([DW_METADATA_DS.DW_METADATA_ALIAS.DW_CONFIGURATION,'PRE_LOAD_CACHE','MAX'], [PROPERTY_VALUE],[NULL],[PROPERTY_NAME, '=', 'dwh.time.zone']) SET (&quot;run_as_separate_process&quot;='no');&#xD;&#xA;&#x9;$L_DUMMY = lookup_ext([DW_METADATA_DS.DW_METADATA_ALIAS.TIMEZONE_INFO,'PRE_LOAD_CACHE','MAX'], [DST_START_DATE_UTC,DST_END_DATE_UTC, BASE_UTC_OFFSET, DST_VALUE],[NULL,NULL,NULL,NULL],[TIMEZONE_ID,'=',$L_TZ_ID ,YEAR_,'=',year( $P_UTC_DATE )], [], [$L_START_DT, $L_END_DT, $L_BASE_UTC_OFFSET, $L_DST_VALUE ]) SET (&quot;run_as_separate_process&quot;='no');&#xD;&#xA;&#x9;&#xD;&#xA;&#x9;$L_OFFSET_IN_MINUTES = ifthenelse($P_UTC_DATE &gt;= $L_START_DT and $P_UTC_DATE &lt; $L_END_DT, $L_BASE_UTC_OFFSET  + $L_DST_VALUE, $L_BASE_UTC_OFFSET);&#xA;&#xD;&#xA;&#xD;&#xA;  if ($L_START_DT is null and $L_END_DT is null and $L_BASE_UTC_OFFSET is null and $L_DST_VALUE is null)&#xD;&#xA;  &#x9;begin&#xD;&#xA;&#x9;&#x9;&#x9;$L_DW_DATE = $P_UTC_DATE;&#xD;&#xA;&#xD;&#xA;ETL_PRINT('WARNING: UTC_DATE_TO_DW: No timezone info available for ' || $P_UTC_DATE || ' (UTC). This date is converted to ' || $L_DW_DATE || ' ('|| $L_TZ_ID || '). '   );&#xA;    ABC_ADDAUDITMETRIC_FN( workflow_name(),                                                                                                   &#xA;                           get_env('ETL_PROCESS_ID'),&#xA;                           'UTC_DATE_TO_DW',&#xA;                           $P_UTC_DATE,&#xA;                           'DATE',   &#xA;                           'WARNING',&#xA;                           'No timezone info available for ' || $L_TZ_ID || ' year ' || $L_DATE_YEAR,&#xA;                           'INVALID_DATE',&#xA;                           'Date could not be processed, considered as invalid date');&#xA;&#xA;    #raise_exception('No timezone info available for ' || $L_TZ_ID || ' year ' || $L_DATE_YEAR );&#xD;&#xA;  end&#xA;  else&#xA;  begin&#xA;    $L_DW_DATE = ifthenelse(($P_UTC_DATE is null), null, $P_UTC_DATE + num_to_interval($L_OFFSET_IN_MINUTES, 'M'));&#xA;  end&#xA;&#xA;end&#xA;&#xA;#$L_TZ_ID = sql('DW_METADATA_DS','SELECT PROPERTY_VALUE FROM dwmetadata.DW_CONFIGURATION WHERE PROPERTY_NAME = \'dwh.time.zone\'');&#xA;#ETL_PRINT('UTC_DATE_TO_DW: INPUT ' || $P_UTC_DATE || ' (UTC) -&gt; ' || $L_DW_DATE || ' ('|| $L_TZ_ID || ') . This is an  offset of ' || $L_OFFSET_IN_MINUTES || ' minutes '   );&#xA;&#xA;return $L_DW_DATE;&#xD;&#xA;&#xA;&#xA;&#xA;"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
</DIProperties>
<DIParameters><DIElement paramType="IN" name="$P_UTC_DATE" datatype="DATETIME" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$L_DW_DATE" datatype="DATETIME" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_OFFSET_IN_MINUTES" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_TZ_ID" datatype="VARCHAR" size="255" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_DATE_YEAR" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_INVALID_DATE" datatype="DATETIME" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_DUMMY" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_START_DT" datatype="DATETIME" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_END_DT" datatype="DATETIME" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_BASE_UTC_OFFSET" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_DST_VALUE" datatype="INT" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="DATETIME" />
<DISteps>
<DIAssignmentStep typeId="12" variable="$L_DATE_YEAR" >
<DIExpression isString="true" expr="year($P_UTC_DATE)" >
<FUNCTION_CALL name="year"  type="DI" >
<VARIABLE_REFERENCE name="$P_UTC_DATE" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_INVALID_DATE" >
<DIExpression isString="true" expr="to_date('12/31/9999', 'MM/DD/YYYY')" >
<FUNCTION_CALL name="to_date"  type="DI" >
<CONSTANT value="12/31/9999" datatype="VARCHAR" size="10" />
<CONSTANT value="MM/DD/YYYY" datatype="VARCHAR" size="10" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="((($L_DATE_YEAR IS  NULL ) OR&#xA;   ($L_DATE_YEAR &lt;= 1900)) OR&#xA;   (to_char($P_UTC_DATE, 'MM/DD/YYYY') = to_char($L_INVALID_DATE, 'MM/DD/YYYY')))" >
<LOGICAL_OP op="OR">
<LOGICAL_OP op="OR">
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$L_DATE_YEAR" />
</LOGICAL_OP>
<LOGICAL_OP op="LE">
<VARIABLE_REFERENCE name="$L_DATE_YEAR" />
<CONSTANT value="1900" datatype="INT" />
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="to_char"  type="DI" >
<VARIABLE_REFERENCE name="$P_UTC_DATE" />
<CONSTANT value="MM/DD/YYYY" datatype="VARCHAR" size="10" />
</FUNCTION_CALL>
<FUNCTION_CALL name="to_char"  type="DI" >
<VARIABLE_REFERENCE name="$L_INVALID_DATE" />
<CONSTANT value="MM/DD/YYYY" datatype="VARCHAR" size="10" />
</FUNCTION_CALL>
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$L_DW_DATE" >
<DIExpression isString="true" expr="$P_UTC_DATE" >
<VARIABLE_REFERENCE name="$P_UTC_DATE" />
</DIExpression>
</DIAssignmentStep>
</DIIf>
<DIElse>
<DIAssignmentStep typeId="12" variable="$L_TZ_ID" >
<DIExpression isString="true" expr="lookup_ext([DW_METADATA_DS.DW_METADATA_ALIAS.DW_CONFIGURATION, 'PRE_LOAD_CACHE', 'MAX'], [ PROPERTY_VALUE ], [  NULL  ], [ PROPERTY_NAME, '=', 'dwh.time.zone' ]) &#xA;SET(&quot;run_as_separate_process&quot; = 'no')&#xA;" >
<FUNCTION_CALL name="lookup_ext"  type="DI" tableDatastore="DW_METADATA_DS" tableOwner="DW_METADATA_ALIAS" tableName="DW_CONFIGURATION" >
<CONSTANT value="PRE_LOAD_CACHE" datatype="VARCHAR" size="14" />
<CONSTANT value="MAX" datatype="VARCHAR" size="3" />
<CONSTANT value="dwh.time.zone" datatype="VARCHAR" size="13" />
<CONSTANT_NULL /><DIAttributes>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_DUMMY" >
<DIExpression isString="true" expr="lookup_ext([DW_METADATA_DS.DW_METADATA_ALIAS.TIMEZONE_INFO, 'PRE_LOAD_CACHE', 'MAX'], [ DST_START_DATE_UTC, DST_END_DATE_UTC, BASE_UTC_OFFSET, DST_VALUE ], [  NULL ,  NULL ,  NULL ,  NULL  ], [ TIMEZONE_ID, '=', $L_TZ_ID, YEAR_, '=', year($P_UTC_DATE) ], [  ], [ $L_START_DT, $L_END_DT, $L_BASE_UTC_OFFSET, $L_DST_VALUE ]) &#xA;SET(&quot;run_as_separate_process&quot; = 'no')&#xA;" >
<FUNCTION_CALL name="lookup_ext"  type="DI" tableDatastore="DW_METADATA_DS" tableOwner="DW_METADATA_ALIAS" tableName="TIMEZONE_INFO" >
<CONSTANT value="PRE_LOAD_CACHE" datatype="VARCHAR" size="14" />
<CONSTANT value="MAX" datatype="VARCHAR" size="3" />
<VARIABLE_REFERENCE name="$L_TZ_ID" />
<FUNCTION_CALL name="year"  type="DI" >
<VARIABLE_REFERENCE name="$P_UTC_DATE" />
</FUNCTION_CALL>
<CONSTANT_NULL /><CONSTANT_NULL /><CONSTANT_NULL /><CONSTANT_NULL /><VARIABLE_REFERENCE name="$L_START_DT" />
<VARIABLE_REFERENCE name="$L_END_DT" />
<VARIABLE_REFERENCE name="$L_BASE_UTC_OFFSET" />
<VARIABLE_REFERENCE name="$L_DST_VALUE" />
<DIAttributes>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_OFFSET_IN_MINUTES" >
<DIExpression isString="true" expr="ifthenelse((($P_UTC_DATE &gt;= $L_START_DT) AND&#xA;   ($P_UTC_DATE &lt; $L_END_DT)), ($L_BASE_UTC_OFFSET + $L_DST_VALUE), $L_BASE_UTC_OFFSET)" >
<FUNCTION_CALL name="ifthenelse"  type="DI" >
<LOGICAL_OP op="AND">
<LOGICAL_OP op="GE">
<VARIABLE_REFERENCE name="$P_UTC_DATE" />
<VARIABLE_REFERENCE name="$L_START_DT" />
</LOGICAL_OP>
<LOGICAL_OP op="LT">
<VARIABLE_REFERENCE name="$P_UTC_DATE" />
<VARIABLE_REFERENCE name="$L_END_DT" />
</LOGICAL_OP>
</LOGICAL_OP>
<ADD>
<VARIABLE_REFERENCE name="$L_BASE_UTC_OFFSET" />
<VARIABLE_REFERENCE name="$L_DST_VALUE" />
</ADD>
<VARIABLE_REFERENCE name="$L_BASE_UTC_OFFSET" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="(((($L_START_DT IS  NULL ) AND&#xA;   ($L_END_DT IS  NULL )) AND&#xA;   ($L_BASE_UTC_OFFSET IS  NULL )) AND&#xA;   ($L_DST_VALUE IS  NULL ))" >
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$L_START_DT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$L_END_DT" />
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$L_BASE_UTC_OFFSET" />
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$L_DST_VALUE" />
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$L_DW_DATE" >
<DIExpression isString="true" expr="$P_UTC_DATE" >
<VARIABLE_REFERENCE name="$P_UTC_DATE" />
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((((((('WARNING: UTC_DATE_TO_DW: No timezone info available for ' || $P_UTC_DATE) || ' (UTC). This date is converted to ') || $L_DW_DATE) || ' (') || $L_TZ_ID) || '). '))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="WARNING: UTC_DATE_TO_DW: No timezone info available for " datatype="VARCHAR" size="56" />
<VARIABLE_REFERENCE name="$P_UTC_DATE" />
</CONCAT>
<CONSTANT value=" (UTC). This date is converted to " datatype="VARCHAR" size="34" />
</CONCAT>
<VARIABLE_REFERENCE name="$L_DW_DATE" />
</CONCAT>
<CONSTANT value=" (" datatype="VARCHAR" size="2" />
</CONCAT>
<VARIABLE_REFERENCE name="$L_TZ_ID" />
</CONCAT>
<CONSTANT value="). " datatype="VARCHAR" size="3" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_addauditmetric_fn(workflow_name(), get_env('ETL_PROCESS_ID'), 'UTC_DATE_TO_DW', $P_UTC_DATE, 'DATE', 'WARNING', ((('No timezone info available for ' || $L_TZ_ID) || ' year ') || $L_DATE_YEAR), 'INVALID_DATE', 'Date could not be processed, considered as invalid date')" >
<FUNCTION_CALL name="abc_addauditmetric_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<FUNCTION_CALL name="get_env"  type="DI" >
<CONSTANT value="ETL_PROCESS_ID" datatype="VARCHAR" size="14" />
</FUNCTION_CALL>
<CONSTANT value="UTC_DATE_TO_DW" datatype="VARCHAR" size="14" />
<VARIABLE_REFERENCE name="$P_UTC_DATE" />
<CONSTANT value="DATE" datatype="VARCHAR" size="4" />
<CONSTANT value="WARNING" datatype="VARCHAR" size="7" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="No timezone info available for " datatype="VARCHAR" size="31" />
<VARIABLE_REFERENCE name="$L_TZ_ID" />
</CONCAT>
<CONSTANT value=" year " datatype="VARCHAR" size="6" />
</CONCAT>
<VARIABLE_REFERENCE name="$L_DATE_YEAR" />
</CONCAT>
<CONSTANT value="INVALID_DATE" datatype="VARCHAR" size="12" />
<CONSTANT value="Date could not be processed, considered as invalid date" datatype="VARCHAR" size="55" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
<DIAssignmentStep typeId="12" variable="$L_DW_DATE" >
<DIExpression isString="true" expr="ifthenelse(($P_UTC_DATE IS  NULL ),  NULL , ($P_UTC_DATE + num_to_interval($L_OFFSET_IN_MINUTES, 'M')))" >
<FUNCTION_CALL name="ifthenelse"  type="DI" >
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$P_UTC_DATE" />
</LOGICAL_OP>
<CONSTANT_NULL /><ADD>
<VARIABLE_REFERENCE name="$P_UTC_DATE" />
<FUNCTION_CALL name="num_to_interval"  type="DI" >
<VARIABLE_REFERENCE name="$L_OFFSET_IN_MINUTES" />
<CONSTANT value="M" datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</ADD>
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
</DIElse>
</DIIfStep>
</DIElse>
</DIIfStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr="$L_DW_DATE" >
<VARIABLE_REFERENCE name="$L_DW_DATE" />
</DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIJob name="SA_SSI_JB" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_SSI_JB (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="VTEST"/>
<DIAttribute name="GenerationDate" value="Mon, 22 Dec 2008 01:00:00"/>
<DIAttribute name="Description" value="The BO DS job SA_SSI_JB is responsible for consolidating the extracting data from a single source system: AM.&#xA;The BO DS job will be composed of a set of workflows that contain dataflows.  There will be one workflow per dataflow.  There will also be one target table per dataflow.  The SSI consolidation process workflows are independent from each other.  Because of this the workflows can be executed in parallel.&#xA;The BO DS job will require the use of global variables.  These variables will be used in every workflow in the job.  These global variables will be set at the start of the job.  Because the workflows will be executed in parallel the global variables must be set at a level higher than the workflows there will be a container workflow that holds all other workflows."/>
<DIAttribute name="Web_Service_Enabled" value="YES"/>
</DIProperties>
<DIVariables>
<DIElement paramType="GLOBAL" name="$G_DEBUG_MODE" datatype="INT" >
</DIElement>
<DIElement paramType="GLOBAL" name="$G_TRACE_MODE" datatype="INT" >
</DIElement>
<DIElement paramType="GLOBAL" name="$G_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="GLOBAL" name="$G_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="GLOBAL" name="$G_FLAG_NEW" datatype="VARCHAR" size="6" >
</DIElement>
<DIElement paramType="GLOBAL" name="$G_FLAG_DELETE" datatype="VARCHAR" size="6" >
</DIElement>
<DIElement paramType="GLOBAL" name="$G_FLAG_UPDATE" datatype="VARCHAR" size="6" >
</DIElement>
<DIElement paramType="GLOBAL" name="$G_MD_NON_PREFILL_FLAG" datatype="VARCHAR" size="1" >
</DIElement>
<DIElement paramType="GLOBAL" name="$G_MD_FROM_PREFILL_FLAG" datatype="VARCHAR" size="1" >
</DIElement>
<DIElement paramType="GLOBAL" name="$G_DATE_MATCH_OFFSET_SEC" datatype="INT" >
</DIElement>
<DIElement paramType="GLOBAL" name="$G_CONTENT_PACK_ID" datatype="INT" >
</DIElement>
<DIElement paramType="GLOBAL" name="$G_EXTN_FILELOCATION" datatype="VARCHAR" size="200" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ui_display_name" value="SA_SSI_JB_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="STARTJB_SC is used to set global variables and initiates the metadata tracking for the Job"/>
<DIAttribute name="ui_display_name" value="STARTJB_SC"/>
<DIAttribute name="ui_script_text" value="$G_EXTN_FILELOCATION = lookup_ext([DW_METADATA_DS.DW_METADATA_ALIAS.FILE_LOCATION_INFO, 'PRE_LOAD_CACHE', 'MAX'], [ FILE_LOCATION ], [ NULL ], [ SOURCE, '=', 'EXTERNAL' ]);&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;ABC_STARTJB_FN($G_PROCESS_ID, $G_DEBUG_MODE, $G_BATCH_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$G_EXTN_FILELOCATION" >
<DIExpression isString="true" expr="lookup_ext([DW_METADATA_DS.DW_METADATA_ALIAS.FILE_LOCATION_INFO, 'PRE_LOAD_CACHE', 'MAX'], [ FILE_LOCATION ], [  NULL  ], [ SOURCE, '=', 'EXTERNAL' ]) " >
<FUNCTION_CALL name="lookup_ext"  type="DI" tableDatastore="DW_METADATA_DS" tableOwner="DW_METADATA_ALIAS" tableName="FILE_LOCATION_INFO" >
<CONSTANT value="PRE_LOAD_CACHE" datatype="VARCHAR" size="14" />
<CONSTANT value="MAX" datatype="VARCHAR" size="3" />
<CONSTANT value="EXTERNAL" datatype="VARCHAR" size="8" />
<CONSTANT_NULL /></FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startjb_fn($G_PROCESS_ID, $G_DEBUG_MODE, $G_BATCH_ID)" >
<FUNCTION_CALL name="abc_startjb_fn"  type="DI" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="0"  calledObjectType="Workflow" name="SA_SSI_CONTAINER_WF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="ENDJB_SC concludes the metadata for the Job and Adds final Entries into the ABC Tracking system"/>
<DIAttribute name="ui_display_name" value="ENDJB_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDJB_FN($G_PROCESS_ID);&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endjb_fn($G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endjb_fn"  type="DI" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ui_display_name" value="SA_SSI_JB_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="SA_SSI_JB_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILJB_FN($G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failjb_fn($G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failjb_fn"  type="DI" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="job_GV_$G_DATE_MATCH_OFFSET_SEC" value="5"/>
<DIAttribute name="job_GV_$G_FLAG_DELETE" value="'DEL'"/>
<DIAttribute name="job_GV_$G_FLAG_NEW" value="'NEW'"/>
<DIAttribute name="job_GV_$G_FLAG_UPDATE" value="'UPD'"/>
<DIAttribute name="job_GV_$G_MD_FROM_PREFILL_FLAG" value="'P'"/>
<DIAttribute name="job_GV_$G_MD_NON_PREFILL_FLAG" value="'D'"/>
<DIAttribute name="job_checkpoint_enabled" value="no"/>
<DIAttribute name="job_collect_statistics" value="no"/>
<DIAttribute name="job_collect_statistics_monitor" value="no"/>
<DIAttribute name="job_enable_assemblers" value="yes"/>
<DIAttribute name="job_enable_audit" value="yes"/>
<DIAttribute name="job_enable_dataquality" value="yes"/>
<DIAttribute name="job_export_repo" value="no"/>
<DIAttribute name="job_export_reports" value="no"/>
<DIAttribute name="job_isrecoverable" value="no"/>
<DIAttribute name="job_mode" value="Multi-Process"/>
<DIAttribute name="job_monitor_sample_rate" value="1000"/>
<DIAttribute name="job_name" value="SA_SSI_JB"/>
<DIAttribute name="job_print_version" value="no"/>
<DIAttribute name="job_testmode_enabled" value="no"/>
<DIAttribute name="job_trace_abapquery" value="no"/>
<DIAttribute name="job_trace_all" value="no"/>
<DIAttribute name="job_trace_ascomm" value="no"/>
<DIAttribute name="job_trace_assemblers" value="no"/>
<DIAttribute name="job_trace_audit" value="no"/>
<DIAttribute name="job_trace_dataflow" value="yes"/>
<DIAttribute name="job_trace_idoc_file" value="no"/>
<DIAttribute name="job_trace_memory_loader" value="no"/>
<DIAttribute name="job_trace_memory_reader" value="no"/>
<DIAttribute name="job_trace_optimized_dataflow" value="no"/>
<DIAttribute name="job_trace_parallel_execution" value="no"/>
<DIAttribute name="job_trace_rfc_function" value="no"/>
<DIAttribute name="job_trace_row" value="no"/>
<DIAttribute name="job_trace_script" value="no"/>
<DIAttribute name="job_trace_session" value="yes"/>
<DIAttribute name="job_trace_sql_only" value="no"/>
<DIAttribute name="job_trace_sqlfunctions" value="no"/>
<DIAttribute name="job_trace_sqlloaders" value="no"/>
<DIAttribute name="job_trace_sqlreaders" value="no"/>
<DIAttribute name="job_trace_sqltransforms" value="no"/>
<DIAttribute name="job_trace_stored_procedure" value="no"/>
<DIAttribute name="job_trace_table" value="no"/>
<DIAttribute name="job_trace_table_reader" value="no"/>
<DIAttribute name="job_trace_transform" value="no"/>
<DIAttribute name="job_trace_userfunction" value="no"/>
<DIAttribute name="job_trace_usertransform" value="no"/>
<DIAttribute name="job_trace_workflow" value="yes"/>
<DIAttribute name="job_type" value="batch"/>
<DIAttribute name="job_use_statistics" value="yes"/>
<DIAttribute name="locale_codepage" value="&lt;default&gt;"/>
<DIAttribute name="locale_language" value="&lt;default&gt;"/>
<DIAttribute name="locale_territory" value="&lt;default&gt;"/>
</DIAttributes>
</DIJob>
<DIWorkflow name="SA_SSI_CONTAINER_WF" typeId="2" >
<DIProperties>
<DIAttribute name="Description" value="This Workflow was created in order to house several workflows that will extract data into files from the source system"/>
</DIProperties>
<DISteps>
<DIParallelStep typeId="11" >
<DISteps>
<DICallStep typeId="0"  calledObjectType="Workflow" name="SA_SSI_GEN_CONT_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="SA_SSI_CUSTOM_CONT_WF" >
</DICallStep>
</DISteps>
</DIParallelStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIWorkflow name="SA_SSI_GEN_CONT_WF" typeId="2" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This workflow is a container for the entities concerned by the SSI ETL Step for the source product SA"/>
</DIAnnotation></DIUIOptions>
<DIProperties>
<DIAttribute name="Description" value="This workflow is a container for the entities concerned by the SSI ETL Step for the source product SA. It integrates the following entities:&#xD;&#xA;  - COMPLIANCE_STATUS (version 1)&#xD;&#xA;  - NODE (version 1)&#xD;&#xA;  - POLICY (version 1)&#xD;&#xA;  - POLICY_REMEDIATION (version 1)&#xD;&#xA;  - POLICY_RESULT (version 1)&#xD;&#xA;"/>
</DIProperties>
<DISteps>
<DIParallelStep typeId="11" >
<DISteps>
<DICallStep typeId="0"  calledObjectType="Workflow" name="SA_COMPLIANCE_STATUS_SSI_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="SA_NODE_SSI_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="SA_POLICY_SSI_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="SA_POLICY_REMEDIATION_SSI_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="SA_POLICY_RESULT_SSI_WF" >
</DICallStep>
</DISteps>
</DIParallelStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIWorkflow name="SA_COMPLIANCE_STATUS_SSI_WF" typeId="2" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This workflow does the mapping from extraction to SSI for the product SM of the entity COMPLIANCE_STATUS"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="SINGLEEXTRACTION_PRODUCT_ENTITY_SSI_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 12:38:55"/>
<DIAttribute name="Description" value="This workflow does the mapping from extraction to SSI for the product SA of the entity COMPLIANCE_STATUS"/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_EXTRACTION_DATE" datatype="DATETIME" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="the Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="SA_COMPLIANCE_STATUS_SSI_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object which contains the script to call the custom start workflow function.  This script opens the metadata records that are part of this process."/>
<DIAttribute name="ui_display_name" value="SA_COMPLIANCE_STATUS_SSI_START_SC"/>
<DIAttribute name="ui_script_text" value="ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;IF ($G_BATCH_ID &lt;&gt;0) &#xD;&#xA;begin&#xD;&#xA;$L_EXTRACTION_DATE = sql('DW_ABC_DS','select MIN(START_TIME) from dwabc.JOB_STREAM_STEP_RT  where JOB_NAME=\'SA_SOURCE_EXTRACT_JB\' AND MD_BATCH_ID ={$G_BATCH_ID}  ');&#xD;&#xA;end &#xD;&#xA;&#xD;&#xA;&#xD;&#xA;IF ($G_BATCH_ID =0) &#xD;&#xA;begin&#xD;&#xA;$L_EXTRACTION_DATE = sql('DW_ABC_DS','select MAX(START_TIME) from dwabc.JOB_STREAM_STEP_RT  where JOB_NAME=\'SA_SOURCE_EXTRACT_JB\' AND MD_BATCH_ID IS NULL  ');&#xD;&#xA;end&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_BATCH_ID != 0)" >
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
<CONSTANT value="0" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$L_EXTRACTION_DATE" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'select MIN(START_TIME) from dwabc.JOB_STREAM_STEP_RT  where JOB_NAME=\'SA_SOURCE_EXTRACT_JB\' AND MD_BATCH_ID ={$G_BATCH_ID}  ')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="select MIN(START_TIME) from dwabc.JOB_STREAM_STEP_RT  where JOB_NAME='SA_SOURCE_EXTRACT_JB' AND MD_BATCH_ID ={$G_BATCH_ID}  " datatype="VARCHAR" size="124" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
</DIIf>
<DIElse>
</DIElse>
</DIIfStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($G_BATCH_ID = 0)" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
<CONSTANT value="0" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$L_EXTRACTION_DATE" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'select MAX(START_TIME) from dwabc.JOB_STREAM_STEP_RT  where JOB_NAME=\'SA_SOURCE_EXTRACT_JB\' AND MD_BATCH_ID IS NULL  ')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="select MAX(START_TIME) from dwabc.JOB_STREAM_STEP_RT  where JOB_NAME='SA_SOURCE_EXTRACT_JB' AND MD_BATCH_ID IS NULL  " datatype="VARCHAR" size="117" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
</DIIf>
<DIElse>
</DIElse>
</DIIfStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="SA_COMPLIANCE_STATUS_SSI_DF" >
<DIUIOptions>
<DIAttribute name="ParmDefaulted_01" value="FALSE"/>
</DIUIOptions>
<DIParameterValues>
<DIExpression isString="true" expr="$L_EXTRACTION_DATE" >
<VARIABLE_REFERENCE name="$L_EXTRACTION_DATE" />
</DIExpression>
</DIParameterValues>
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object that calls the custom end workflow function.  This script closes the metadata records that are part of this process."/>
<DIAttribute name="ui_display_name" value="SA_COMPLIANCE_STATUS_SSI_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The workflow catch object is the end of the TRY/CATCH block in BO DS.  This catch block will contain the script object that calls a custom fail workflow function used to write the metadata for failed jobs."/>
<DIAttribute name="ui_display_name" value="SA_COMPLIANCE_STATUS_SSI_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="SA_COMPLIANCE_STATUS_SSI_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="SA_COMPLIANCE_STATUS_SSI_DF" typeId="1" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIParameters>
<DIElement paramType="IN" name="$P_EXTRACTION_DATE" datatype="DATETIME" >
</DIElement>
</DIParameters>
<DITransforms>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="SA_POLICY_RESULT_EXT"/>
<DIAttribute name="ui_display_name" value="Query_UTC"/>
</DIUIOptions>
<DISchema name="Query_UTC" >
<DIElement name="DATE_STATUS_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="UTC_DATE_TO_DW(SOURCE_DATE_TO_UTC(SA_POLICY_RESULT_EXT.ENDDATE, SA_POLICY_RESULT_EXT.MD_CP_ID))&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_STATUS_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SOURCE_DATE_TO_UTC(SA_POLICY_RESULT_EXT.ENDDATE,  SA_POLICY_RESULT_EXT.MD_CP_ID)&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="UTC_DATE_TO_DW(SOURCE_DATE_TO_UTC(SA_POLICY_RESULT_EXT.ENDDATE,  SA_POLICY_RESULT_EXT.MD_CP_ID))&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SOURCE_DATE_TO_UTC(SA_POLICY_RESULT_EXT.ENDDATE,  SA_POLICY_RESULT_EXT.MD_CP_ID)&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_END_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="DW_DATE_TO_UTC($P_EXTRACTION_DATE)&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DURATION" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="null&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="to_char(SA_POLICY_RESULT_EXT.ENDDATE, 'yyyymmddhh24miss') || ':' || SA_POLICY_RESULT_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="null&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="COMPLIANCE_STATUS" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ifthenelse( SA_POLICY_RESULT_EXT.TARGETSTATUS = 'Compliant', 'compliant', 'in_breach')&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_POLICY_RESULT_EXT.POLICYID || ':' || 'Audit'"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_POLICY_RESULT_EXT.TARGETSERVERID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_POLICY_RESULT_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="utc_date_to_dw(source_date_to_utc(SA_POLICY_RESULT_EXT.ENDDATE, SA_POLICY_RESULT_EXT.MD_CP_ID))" >
<FUNCTION_CALL name="utc_date_to_dw"  type="DI" >
<FUNCTION_CALL name="source_date_to_utc"  type="DI" >
<COLUMN_REFERENCE  qualifier1="SA_POLICY_RESULT_EXT" column="ENDDATE" />
<COLUMN_REFERENCE  qualifier1="SA_POLICY_RESULT_EXT" column="MD_CP_ID" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="source_date_to_utc(SA_POLICY_RESULT_EXT.ENDDATE, SA_POLICY_RESULT_EXT.MD_CP_ID)" >
<FUNCTION_CALL name="source_date_to_utc"  type="DI" >
<COLUMN_REFERENCE  qualifier1="SA_POLICY_RESULT_EXT" column="ENDDATE" />
<COLUMN_REFERENCE  qualifier1="SA_POLICY_RESULT_EXT" column="MD_CP_ID" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="utc_date_to_dw(source_date_to_utc(SA_POLICY_RESULT_EXT.ENDDATE, SA_POLICY_RESULT_EXT.MD_CP_ID))" >
<FUNCTION_CALL name="utc_date_to_dw"  type="DI" >
<FUNCTION_CALL name="source_date_to_utc"  type="DI" >
<COLUMN_REFERENCE  qualifier1="SA_POLICY_RESULT_EXT" column="ENDDATE" />
<COLUMN_REFERENCE  qualifier1="SA_POLICY_RESULT_EXT" column="MD_CP_ID" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="source_date_to_utc(SA_POLICY_RESULT_EXT.ENDDATE, SA_POLICY_RESULT_EXT.MD_CP_ID)" >
<FUNCTION_CALL name="source_date_to_utc"  type="DI" >
<COLUMN_REFERENCE  qualifier1="SA_POLICY_RESULT_EXT" column="ENDDATE" />
<COLUMN_REFERENCE  qualifier1="SA_POLICY_RESULT_EXT" column="MD_CP_ID" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="dw_date_to_utc($P_EXTRACTION_DATE)" >
<FUNCTION_CALL name="dw_date_to_utc"  type="DI" >
<VARIABLE_REFERENCE name="$P_EXTRACTION_DATE" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr="((to_char(SA_POLICY_RESULT_EXT.ENDDATE, 'yyyymmddhh24miss') || ':') || SA_POLICY_RESULT_EXT.MD_BUSINESS_KEY)" >
<CONCAT>
<CONCAT>
<FUNCTION_CALL name="to_char"  type="DI" >
<COLUMN_REFERENCE  qualifier1="SA_POLICY_RESULT_EXT" column="ENDDATE" />
<CONSTANT value="yyyymmddhh24miss" datatype="VARCHAR" size="16" />
</FUNCTION_CALL>
<CONSTANT value=":" datatype="VARCHAR" size="1" />
</CONCAT>
<COLUMN_REFERENCE  qualifier1="SA_POLICY_RESULT_EXT" column="MD_BUSINESS_KEY" />
</CONCAT>
</DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr="ifthenelse((SA_POLICY_RESULT_EXT.TARGETSTATUS = 'Compliant'), 'compliant', 'in_breach')" >
<FUNCTION_CALL name="ifthenelse"  type="DI" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="SA_POLICY_RESULT_EXT" column="TARGETSTATUS" />
<CONSTANT value="Compliant" datatype="VARCHAR" size="9" />
</LOGICAL_OP>
<CONSTANT value="compliant" datatype="VARCHAR" size="9" />
<CONSTANT value="in_breach" datatype="VARCHAR" size="9" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="((SA_POLICY_RESULT_EXT.POLICYID || ':') || 'Audit')" >
<CONCAT>
<CONCAT>
<COLUMN_REFERENCE  qualifier1="SA_POLICY_RESULT_EXT" column="POLICYID" />
<CONSTANT value=":" datatype="VARCHAR" size="1" />
</CONCAT>
<CONSTANT value="Audit" datatype="VARCHAR" size="5" />
</CONCAT>
</DIExpression>
<DIExpression isString="true" expr="SA_POLICY_RESULT_EXT.TARGETSERVERID" >
<COLUMN_REFERENCE  qualifier1="SA_POLICY_RESULT_EXT" column="TARGETSERVERID" />
</DIExpression>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="SA_POLICY_RESULT_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="SA_POLICY_RESULT_EXT" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="SA_POLICY_RESULT_EXT" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Query_SUM"/>
<DIAttribute name="ui_display_name" value="Query"/>
</DIUIOptions>
<DISchema name="Query" >
<DIElement name="DATE_RECORD_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_SUM.DATE_RECORD_START_LOC&#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_SUM.DATE_RECORD_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_STATUS_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_SUM.DATE_STATUS_START_LOC&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_STATUS_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_SUM.DATE_STATUS_START_UTC&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_END_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_SUM.DATE_RECORD_END_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DURATION" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_SUM.DURATION&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_SUM.MD_BUSINESS_KEY&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_FLAG_NEW &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_SUM.PERIOD_BUSINESS_KEY&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_SUM.NODE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_SUM.POLICY_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COMPLIANCE_STATUS" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_SUM.COMPLIANCE_STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_SUM.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="Query_SUM.DATE_RECORD_START_LOC" >
<COLUMN_REFERENCE  qualifier1="Query_SUM" column="DATE_RECORD_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="Query_SUM.DATE_RECORD_START_UTC" >
<COLUMN_REFERENCE  qualifier1="Query_SUM" column="DATE_RECORD_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="Query_SUM.DATE_STATUS_START_LOC" >
<COLUMN_REFERENCE  qualifier1="Query_SUM" column="DATE_STATUS_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="Query_SUM.DATE_STATUS_START_UTC" >
<COLUMN_REFERENCE  qualifier1="Query_SUM" column="DATE_STATUS_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="Query_SUM.DATE_RECORD_END_UTC" >
<COLUMN_REFERENCE  qualifier1="Query_SUM" column="DATE_RECORD_END_UTC" />
</DIExpression>
<DIExpression isString="true" expr="Query_SUM.DURATION" >
<COLUMN_REFERENCE  qualifier1="Query_SUM" column="DURATION" />
</DIExpression>
<DIExpression isString="true" expr="Query_SUM.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Query_SUM" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="$G_FLAG_NEW" >
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</DIExpression>
<DIExpression isString="true" expr="Query_SUM.PERIOD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Query_SUM" column="PERIOD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Query_SUM.NODE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Query_SUM" column="NODE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Query_SUM.POLICY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Query_SUM" column="POLICY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Query_SUM.COMPLIANCE_STATUS" >
<COLUMN_REFERENCE  qualifier1="Query_SUM" column="COMPLIANCE_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="Query_SUM.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="Query_SUM" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Query_SUM" />
</DIFrom>
<DIOrderBys>
<DIOrderBy direction="ASC">
<DIExpression isString="true" expr="Query_SUM.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="Query_SUM" column="MD_CP_ID" />
</DIExpression>
</DIOrderBy>
<DIOrderBy direction="ASC">
<DIExpression isString="true" expr="Query_SUM.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Query_SUM" column="MD_BUSINESS_KEY" />
</DIExpression>
</DIOrderBy>
</DIOrderBys>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Calc_Record_DURATION"/>
<DIAttribute name="ui_display_name" value="Query_SUM"/>
</DIUIOptions>
<DISchema name="Query_SUM" >
<DIElement name="DATE_RECORD_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="min(Calc_Record_DURATION.DATE_RECORD_START_LOC)&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="min(Calc_Record_DURATION.DATE_RECORD_START_UTC)&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_STATUS_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="min(Calc_Record_DURATION.DATE_STATUS_START_LOC)&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_STATUS_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="min(Calc_Record_DURATION.DATE_STATUS_START_UTC)&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_END_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="max(Calc_Record_DURATION.DATE_RECORD_END_UTC)"/>
</DIAttributes>
</DIElement>
<DIElement name="DURATION" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="sum(Calc_Record_DURATION.DURATION)&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="min(Calc_Record_DURATION.MD_BUSINESS_KEY)&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="min(Calc_Record_DURATION.PERIOD_BUSINESS_KEY)&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="min(Calc_Record_DURATION.NODE_BUSINESS_KEY)&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="min(Calc_Record_DURATION.POLICY_BUSINESS_KEY)&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="COMPLIANCE_STATUS" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="min(Calc_Record_DURATION.COMPLIANCE_STATUS)&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="RANK" datatype="INT" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Record_DURATION.RANK&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Record_DURATION.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="min(Calc_Record_DURATION.DATE_RECORD_START_LOC)" >
<FUNCTION_CALL name="min"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Calc_Record_DURATION" column="DATE_RECORD_START_LOC" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="min(Calc_Record_DURATION.DATE_RECORD_START_UTC)" >
<FUNCTION_CALL name="min"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Calc_Record_DURATION" column="DATE_RECORD_START_UTC" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="min(Calc_Record_DURATION.DATE_STATUS_START_LOC)" >
<FUNCTION_CALL name="min"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Calc_Record_DURATION" column="DATE_STATUS_START_LOC" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="min(Calc_Record_DURATION.DATE_STATUS_START_UTC)" >
<FUNCTION_CALL name="min"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Calc_Record_DURATION" column="DATE_STATUS_START_UTC" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="max(Calc_Record_DURATION.DATE_RECORD_END_UTC)" >
<FUNCTION_CALL name="max"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Calc_Record_DURATION" column="DATE_RECORD_END_UTC" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="sum(Calc_Record_DURATION.DURATION)" >
<FUNCTION_CALL name="sum"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Calc_Record_DURATION" column="DURATION" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="min(Calc_Record_DURATION.MD_BUSINESS_KEY)" >
<FUNCTION_CALL name="min"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Calc_Record_DURATION" column="MD_BUSINESS_KEY" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="min(Calc_Record_DURATION.PERIOD_BUSINESS_KEY)" >
<FUNCTION_CALL name="min"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Calc_Record_DURATION" column="PERIOD_BUSINESS_KEY" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="min(Calc_Record_DURATION.NODE_BUSINESS_KEY)" >
<FUNCTION_CALL name="min"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Calc_Record_DURATION" column="NODE_BUSINESS_KEY" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="min(Calc_Record_DURATION.POLICY_BUSINESS_KEY)" >
<FUNCTION_CALL name="min"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Calc_Record_DURATION" column="POLICY_BUSINESS_KEY" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="min(Calc_Record_DURATION.COMPLIANCE_STATUS)" >
<FUNCTION_CALL name="min"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Calc_Record_DURATION" column="COMPLIANCE_STATUS" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="Calc_Record_DURATION.RANK" >
<COLUMN_REFERENCE  qualifier1="Calc_Record_DURATION" column="RANK" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Record_DURATION.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="Calc_Record_DURATION" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Calc_Record_DURATION" />
</DIFrom>
<DIGroupBy>
<DIExpression isString="true" expr="Calc_Record_DURATION.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="Calc_Record_DURATION" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Record_DURATION.RANK" >
<COLUMN_REFERENCE  qualifier1="Calc_Record_DURATION" column="RANK" />
</DIExpression>
</DIGroupBy>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Query"/>
<DIAttribute name="ui_acta_from_schema_1" value="PERIOD_DIM"/>
<DIAttribute name="ui_display_name" value="Break_Into_Days"/>
<DIAttribute name="ui_where_text" value="PERIOD_DIM.PERIODICITY = 'DAILY'&#xD;&#xA;AND PERIOD_DIM.FINANCIAL_USAGE_TYPE = 'FISCAL'&#xD;&#xA;AND&#xD;&#xA;(  &#xD;&#xA;&#x9;(&#xD;&#xA;&#x9;&#x9;(PERIOD_DIM.START_DATE &gt;= Query.DATE_RECORD_START_LOC) &#xD;&#xA;&#x9;&#x9;AND (PERIOD_DIM.START_DATE &lt; (Query.DATE_RECORD_START_LOC + num_to_interval(Query.DURATION, 'M')))&#xD;&#xA;&#x9;)   &#xD;&#xA;&#x9;OR&#xD;&#xA;&#x9;(&#xD;&#xA;&#x9;&#x9;(PERIOD_DIM.END_DATE &gt;= Query.DATE_RECORD_START_LOC) &#xD;&#xA;&#x9;   AND (PERIOD_DIM.END_DATE &lt;= (Query.DATE_RECORD_START_LOC + num_to_interval(Query.DURATION, 'M')))&#xD;&#xA;&#x9;)&#xD;&#xA;)"/>
</DIUIOptions>
<DISchema name="Break_Into_Days" >
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query.PERIOD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query.NODE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query.POLICY_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COMPLIANCE_STATUS" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query.COMPLIANCE_STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_STATUS_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query.DATE_STATUS_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_STATUS_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query.DATE_STATUS_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query.DATE_RECORD_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_START_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="PERIOD_DIM.START_DATE&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DURATION" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query.DURATION"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_END_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="PERIOD_DIM.END_DATE&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_END_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="UTC_DATE_TO_DW( Query.DATE_RECORD_END_UTC )"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="Query.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Query" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Query.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="Query" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="Query.PERIOD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Query" column="PERIOD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Query.NODE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Query" column="NODE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Query.POLICY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Query" column="POLICY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Query.COMPLIANCE_STATUS" >
<COLUMN_REFERENCE  qualifier1="Query" column="COMPLIANCE_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="Query.DATE_STATUS_START_UTC" >
<COLUMN_REFERENCE  qualifier1="Query" column="DATE_STATUS_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="Query.DATE_STATUS_START_LOC" >
<COLUMN_REFERENCE  qualifier1="Query" column="DATE_STATUS_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="Query.DATE_RECORD_START_LOC" >
<COLUMN_REFERENCE  qualifier1="Query" column="DATE_RECORD_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="PERIOD_DIM.START_DATE" >
<COLUMN_REFERENCE  qualifier1="PERIOD_DIM" column="START_DATE" />
</DIExpression>
<DIExpression isString="true" expr="Query.DURATION" >
<COLUMN_REFERENCE  qualifier1="Query" column="DURATION" />
</DIExpression>
<DIExpression isString="true" expr="PERIOD_DIM.END_DATE" >
<COLUMN_REFERENCE  qualifier1="PERIOD_DIM" column="END_DATE" />
</DIExpression>
<DIExpression isString="true" expr="utc_date_to_dw(Query.DATE_RECORD_END_UTC)" >
<FUNCTION_CALL name="utc_date_to_dw"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Query" column="DATE_RECORD_END_UTC" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="Query.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="Query" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="PERIOD_DIM" />
<DITableSpec name="Query" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(((PERIOD_DIM.PERIODICITY = 'DAILY') AND&#xA;   (PERIOD_DIM.FINANCIAL_USAGE_TYPE = 'FISCAL')) AND&#xA;   (  ((  ((PERIOD_DIM.START_DATE &gt;= Query.DATE_RECORD_START_LOC) AND&#xA;   (PERIOD_DIM.START_DATE &lt; (Query.DATE_RECORD_START_LOC + num_to_interval(Query.DURATION, 'M'))))  ) OR&#xA;   (  ((PERIOD_DIM.END_DATE &gt;= Query.DATE_RECORD_START_LOC) AND&#xA;   (PERIOD_DIM.END_DATE &lt;= (Query.DATE_RECORD_START_LOC + num_to_interval(Query.DURATION, 'M'))))  ))  ))" >
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="PERIOD_DIM" column="PERIODICITY" />
<CONSTANT value="DAILY" datatype="VARCHAR" size="5" />
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="PERIOD_DIM" column="FINANCIAL_USAGE_TYPE" />
<CONSTANT value="FISCAL" datatype="VARCHAR" size="6" />
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="GE">
<COLUMN_REFERENCE  qualifier1="PERIOD_DIM" column="START_DATE" />
<COLUMN_REFERENCE  qualifier1="Query" column="DATE_RECORD_START_LOC" />
</LOGICAL_OP>
<LOGICAL_OP op="LT">
<COLUMN_REFERENCE  qualifier1="PERIOD_DIM" column="START_DATE" />
<ADD>
<COLUMN_REFERENCE  qualifier1="Query" column="DATE_RECORD_START_LOC" />
<FUNCTION_CALL name="num_to_interval"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Query" column="DURATION" />
<CONSTANT value="M" datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</ADD>
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="AND">
<LOGICAL_OP op="GE">
<COLUMN_REFERENCE  qualifier1="PERIOD_DIM" column="END_DATE" />
<COLUMN_REFERENCE  qualifier1="Query" column="DATE_RECORD_START_LOC" />
</LOGICAL_OP>
<LOGICAL_OP op="LE">
<COLUMN_REFERENCE  qualifier1="PERIOD_DIM" column="END_DATE" />
<ADD>
<COLUMN_REFERENCE  qualifier1="Query" column="DATE_RECORD_START_LOC" />
<FUNCTION_CALL name="num_to_interval"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Query" column="DURATION" />
<CONSTANT value="M" datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</ADD>
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
</DIWhere>
<DILeftOuterJoin>
<DILeftOuterJoinPair outer="Query" inner="PERIOD_DIM"  />
</DILeftOuterJoin>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="DW_DS" ownerName="DW_ALIAS" tableName="PERIOD_DIM" >
<DIOutputView name="PERIOD_DIM"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="DW_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="1"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Break_Into_Days"/>
<DIAttribute name="ui_display_name" value="Calc_Dates"/>
</DIUIOptions>
<DISchema name="Calc_Dates" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Break_Into_Days.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Break_Into_Days.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Break_Into_Days.NODE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Break_Into_Days.POLICY_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COMPLIANCE_STATUS" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Break_Into_Days.COMPLIANCE_STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_STATUS_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Break_Into_Days.DATE_STATUS_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_STATUS_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Break_Into_Days.DATE_STATUS_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ifthenelse(Break_Into_Days.PERIOD_START_DATE IS NOT NULL, &#xD;&#xA;&#x9;&#x9;ifthenelse(date_part( Break_Into_Days.DATE_RECORD_START_LOC,'DD')= date_part( Break_Into_Days.PERIOD_START_DATE,'DD') &#xD;&#xA;&#x9;&#x9;&#x9;&#x9;AND date_part( Break_Into_Days.DATE_RECORD_START_LOC,'MM')= date_part( Break_Into_Days.PERIOD_START_DATE,'MM') &#xD;&#xA;&#x9;&#x9;&#x9;&#x9;AND date_part( Break_Into_Days.DATE_RECORD_START_LOC,'YY')= date_part( Break_Into_Days.PERIOD_START_DATE,'YY'), &#xD;&#xA;&#x9;&#x9;&#x9;&#x9;Break_Into_Days.DATE_RECORD_START_LOC, &#xD;&#xA;&#x9;&#x9;&#x9;&#x9;Break_Into_Days.PERIOD_START_DATE), &#xD;&#xA;&#x9;&#x9;Break_Into_Days.DATE_RECORD_START_LOC )"/>
</DIAttributes>
</DIElement>
<DIElement name="DURATION" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Break_Into_Days.DURATION"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_END_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ifthenelse(Break_Into_Days.PERIOD_END_DATE IS NOT NULL, &#xD;&#xA;&#x9;&#x9;ifthenelse(date_part( Break_Into_Days.DATE_RECORD_END_LOC,'DD')= date_part( Break_Into_Days.PERIOD_END_DATE,'DD') &#xD;&#xA;&#x9;&#x9;&#x9;&#x9;AND date_part( Break_Into_Days.DATE_RECORD_END_LOC,'MM')= date_part( Break_Into_Days.PERIOD_END_DATE,'MM') &#xD;&#xA;&#x9;&#x9;&#x9;&#x9;AND date_part( Break_Into_Days.DATE_RECORD_END_LOC,'YY')= date_part( Break_Into_Days.PERIOD_END_DATE,'YY'), &#xD;&#xA;&#x9;&#x9;&#x9;&#x9;Break_Into_Days.DATE_RECORD_END_LOC, &#xD;&#xA;&#x9;&#x9;&#x9;&#x9;(Break_Into_Days.PERIOD_END_DATE + num_to_interval( 1, 'S'))), &#xD;&#xA;&#x9;&#x9;Break_Into_Days.DATE_RECORD_END_LOC )"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Break_Into_Days.PERIOD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Break_Into_Days.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="Break_Into_Days.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Break_Into_Days" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Break_Into_Days.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="Break_Into_Days" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="Break_Into_Days.NODE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Break_Into_Days" column="NODE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Break_Into_Days.POLICY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Break_Into_Days" column="POLICY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Break_Into_Days.COMPLIANCE_STATUS" >
<COLUMN_REFERENCE  qualifier1="Break_Into_Days" column="COMPLIANCE_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="Break_Into_Days.DATE_STATUS_START_UTC" >
<COLUMN_REFERENCE  qualifier1="Break_Into_Days" column="DATE_STATUS_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="Break_Into_Days.DATE_STATUS_START_LOC" >
<COLUMN_REFERENCE  qualifier1="Break_Into_Days" column="DATE_STATUS_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ifthenelse((Break_Into_Days.PERIOD_START_DATE IS NOT  NULL ), ifthenelse((((date_part(Break_Into_Days.DATE_RECORD_START_LOC, 'DD') = date_part(Break_Into_Days.PERIOD_START_DATE, 'DD')) AND&#xA;   (date_part(Break_Into_Days.DATE_RECORD_START_LOC, 'MM') = date_part(Break_Into_Days.PERIOD_START_DATE, 'MM'))) AND&#xA;   (date_part(Break_Into_Days.DATE_RECORD_START_LOC, 'YY') = date_part(Break_Into_Days.PERIOD_START_DATE, 'YY'))), Break_Into_Days.DATE_RECORD_START_LOC, Break_Into_Days.PERIOD_START_DATE), Break_Into_Days.DATE_RECORD_START_LOC)" >
<FUNCTION_CALL name="ifthenelse"  type="DI" >
<LOGICAL_OP op="IS NOT NULL">
<COLUMN_REFERENCE  qualifier1="Break_Into_Days" column="PERIOD_START_DATE" />
</LOGICAL_OP>
<FUNCTION_CALL name="ifthenelse"  type="DI" >
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="date_part"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Break_Into_Days" column="DATE_RECORD_START_LOC" />
<CONSTANT value="DD" datatype="VARCHAR" size="2" />
</FUNCTION_CALL>
<FUNCTION_CALL name="date_part"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Break_Into_Days" column="PERIOD_START_DATE" />
<CONSTANT value="DD" datatype="VARCHAR" size="2" />
</FUNCTION_CALL>
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="date_part"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Break_Into_Days" column="DATE_RECORD_START_LOC" />
<CONSTANT value="MM" datatype="VARCHAR" size="2" />
</FUNCTION_CALL>
<FUNCTION_CALL name="date_part"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Break_Into_Days" column="PERIOD_START_DATE" />
<CONSTANT value="MM" datatype="VARCHAR" size="2" />
</FUNCTION_CALL>
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="date_part"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Break_Into_Days" column="DATE_RECORD_START_LOC" />
<CONSTANT value="YY" datatype="VARCHAR" size="2" />
</FUNCTION_CALL>
<FUNCTION_CALL name="date_part"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Break_Into_Days" column="PERIOD_START_DATE" />
<CONSTANT value="YY" datatype="VARCHAR" size="2" />
</FUNCTION_CALL>
</LOGICAL_OP>
</LOGICAL_OP>
<COLUMN_REFERENCE  qualifier1="Break_Into_Days" column="DATE_RECORD_START_LOC" />
<COLUMN_REFERENCE  qualifier1="Break_Into_Days" column="PERIOD_START_DATE" />
</FUNCTION_CALL>
<COLUMN_REFERENCE  qualifier1="Break_Into_Days" column="DATE_RECORD_START_LOC" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="Break_Into_Days.DURATION" >
<COLUMN_REFERENCE  qualifier1="Break_Into_Days" column="DURATION" />
</DIExpression>
<DIExpression isString="true" expr="ifthenelse((Break_Into_Days.PERIOD_END_DATE IS NOT  NULL ), ifthenelse((((date_part(Break_Into_Days.DATE_RECORD_END_LOC, 'DD') = date_part(Break_Into_Days.PERIOD_END_DATE, 'DD')) AND&#xA;   (date_part(Break_Into_Days.DATE_RECORD_END_LOC, 'MM') = date_part(Break_Into_Days.PERIOD_END_DATE, 'MM'))) AND&#xA;   (date_part(Break_Into_Days.DATE_RECORD_END_LOC, 'YY') = date_part(Break_Into_Days.PERIOD_END_DATE, 'YY'))), Break_Into_Days.DATE_RECORD_END_LOC, (Break_Into_Days.PERIOD_END_DATE + num_to_interval(1, 'S'))), Break_Into_Days.DATE_RECORD_END_LOC)" >
<FUNCTION_CALL name="ifthenelse"  type="DI" >
<LOGICAL_OP op="IS NOT NULL">
<COLUMN_REFERENCE  qualifier1="Break_Into_Days" column="PERIOD_END_DATE" />
</LOGICAL_OP>
<FUNCTION_CALL name="ifthenelse"  type="DI" >
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="date_part"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Break_Into_Days" column="DATE_RECORD_END_LOC" />
<CONSTANT value="DD" datatype="VARCHAR" size="2" />
</FUNCTION_CALL>
<FUNCTION_CALL name="date_part"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Break_Into_Days" column="PERIOD_END_DATE" />
<CONSTANT value="DD" datatype="VARCHAR" size="2" />
</FUNCTION_CALL>
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="date_part"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Break_Into_Days" column="DATE_RECORD_END_LOC" />
<CONSTANT value="MM" datatype="VARCHAR" size="2" />
</FUNCTION_CALL>
<FUNCTION_CALL name="date_part"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Break_Into_Days" column="PERIOD_END_DATE" />
<CONSTANT value="MM" datatype="VARCHAR" size="2" />
</FUNCTION_CALL>
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="date_part"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Break_Into_Days" column="DATE_RECORD_END_LOC" />
<CONSTANT value="YY" datatype="VARCHAR" size="2" />
</FUNCTION_CALL>
<FUNCTION_CALL name="date_part"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Break_Into_Days" column="PERIOD_END_DATE" />
<CONSTANT value="YY" datatype="VARCHAR" size="2" />
</FUNCTION_CALL>
</LOGICAL_OP>
</LOGICAL_OP>
<COLUMN_REFERENCE  qualifier1="Break_Into_Days" column="DATE_RECORD_END_LOC" />
<ADD>
<COLUMN_REFERENCE  qualifier1="Break_Into_Days" column="PERIOD_END_DATE" />
<FUNCTION_CALL name="num_to_interval"  type="DI" >
<CONSTANT value="1" datatype="INT" />
<CONSTANT value="S" datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</ADD>
</FUNCTION_CALL>
<COLUMN_REFERENCE  qualifier1="Break_Into_Days" column="DATE_RECORD_END_LOC" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="Break_Into_Days.PERIOD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Break_Into_Days" column="PERIOD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Break_Into_Days.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="Break_Into_Days" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Break_Into_Days" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Calc_Peirod_Business_Key"/>
<DIAttribute name="ui_display_name" value="Calc_Duration"/>
</DIUIOptions>
<DISchema name="Calc_Duration" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Peirod_Business_Key.MD_BATCH_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Peirod_Business_Key.MD_PROCESS_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Peirod_Business_Key.DATE_RECORD_START_LOC&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="DW_DATE_TO_UTC(Calc_Peirod_Business_Key.DATE_RECORD_START_LOC)"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_STATUS_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Peirod_Business_Key.DATE_STATUS_START_LOC&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_STATUS_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Peirod_Business_Key.DATE_STATUS_START_UTC&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_END_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Peirod_Business_Key.DATE_RECORD_END_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DURATION" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="date_diff(Calc_Peirod_Business_Key.DATE_RECORD_START_LOC , Calc_Peirod_Business_Key.DATE_RECORD_END_LOC , 'S') / 60"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Peirod_Business_Key.MD_BUSINESS_KEY&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Peirod_Business_Key.MD_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Peirod_Business_Key.PERIOD_BUSINESS_KEY&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Null&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="COMPLIANCE_STATUS" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Peirod_Business_Key.COMPLIANCE_STATUS&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Peirod_Business_Key.NODE_BUSINESS_KEY&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="null&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Peirod_Business_Key.POLICY_BUSINESS_KEY&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="null&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Peirod_Business_Key.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="Calc_Peirod_Business_Key.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="Calc_Peirod_Business_Key" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Peirod_Business_Key.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="Calc_Peirod_Business_Key" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Peirod_Business_Key.DATE_RECORD_START_LOC" >
<COLUMN_REFERENCE  qualifier1="Calc_Peirod_Business_Key" column="DATE_RECORD_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="dw_date_to_utc(Calc_Peirod_Business_Key.DATE_RECORD_START_LOC)" >
<FUNCTION_CALL name="dw_date_to_utc"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Calc_Peirod_Business_Key" column="DATE_RECORD_START_LOC" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="Calc_Peirod_Business_Key.DATE_STATUS_START_LOC" >
<COLUMN_REFERENCE  qualifier1="Calc_Peirod_Business_Key" column="DATE_STATUS_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Peirod_Business_Key.DATE_STATUS_START_UTC" >
<COLUMN_REFERENCE  qualifier1="Calc_Peirod_Business_Key" column="DATE_STATUS_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Peirod_Business_Key.DATE_RECORD_END_LOC" >
<COLUMN_REFERENCE  qualifier1="Calc_Peirod_Business_Key" column="DATE_RECORD_END_LOC" />
</DIExpression>
<DIExpression isString="true" expr="(date_diff(Calc_Peirod_Business_Key.DATE_RECORD_START_LOC, Calc_Peirod_Business_Key.DATE_RECORD_END_LOC, 'S') / 60)" >
<DIVIDE>
<FUNCTION_CALL name="date_diff"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Calc_Peirod_Business_Key" column="DATE_RECORD_START_LOC" />
<COLUMN_REFERENCE  qualifier1="Calc_Peirod_Business_Key" column="DATE_RECORD_END_LOC" />
<CONSTANT value="S" datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
<CONSTANT value="60" datatype="INT" />
</DIVIDE>
</DIExpression>
<DIExpression isString="true" expr="Calc_Peirod_Business_Key.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Calc_Peirod_Business_Key" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Peirod_Business_Key.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="Calc_Peirod_Business_Key" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Peirod_Business_Key.PERIOD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Calc_Peirod_Business_Key" column="PERIOD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr="Calc_Peirod_Business_Key.COMPLIANCE_STATUS" >
<COLUMN_REFERENCE  qualifier1="Calc_Peirod_Business_Key" column="COMPLIANCE_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Peirod_Business_Key.NODE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Calc_Peirod_Business_Key" column="NODE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr="Calc_Peirod_Business_Key.POLICY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Calc_Peirod_Business_Key" column="POLICY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr="Calc_Peirod_Business_Key.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="Calc_Peirod_Business_Key" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Calc_Peirod_Business_Key" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="SA_COMPLIANCE_STATUS_SSI" >
<DIInputView name="Map_Extraction_To_SSI"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit>1000</bulk_ldr_rows_per_commit>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>No</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>no</loader_auto_correct>
<loader_bulk_load>1</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_SA_COMPLIANCE_STATUS_SSI.txt</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>truncate</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Calc_Duration"/>
<DIAttribute name="ui_display_name" value="Calc_Business_Key"/>
</DIUIOptions>
<DISchema name="Calc_Business_Key" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="to_char(Calc_Duration.DATE_RECORD_END_LOC, 'yyyymmddhh24miss') || ':' || substr(Calc_Duration.MD_BUSINESS_KEY, 16, length(Calc_Duration.MD_BUSINESS_KEY) - 15)&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Duration.MD_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Duration.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_STATUS_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Duration.DATE_STATUS_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_STATUS_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Duration.DATE_STATUS_START_UTC&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="COMPLIANCE_STATUS" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Duration.COMPLIANCE_STATUS&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Duration.POLICY_BUSINESS_KEY&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="NULL&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Duration.NODE_BUSINESS_KEY&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="NULL&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Duration.DATE_RECORD_START_LOC&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Duration.DATE_RECORD_START_UTC&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DURATION" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Duration.DURATION&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Duration.PERIOD_BUSINESS_KEY&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Duration.PERIOD_ENTERPRISE_KEY&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="200" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="to_char(Calc_Duration.DATE_RECORD_END_LOC, 'yyyymmddhh24miss') || ':' || substr(Calc_Duration.MD_BUSINESS_KEY, 16, length(Calc_Duration.MD_BUSINESS_KEY) - 15)&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="((to_char(Calc_Duration.DATE_RECORD_END_LOC, 'yyyymmddhh24miss') || ':') || substr(Calc_Duration.MD_BUSINESS_KEY, 16, (length(Calc_Duration.MD_BUSINESS_KEY) - 15)))" >
<CONCAT>
<CONCAT>
<FUNCTION_CALL name="to_char"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Calc_Duration" column="DATE_RECORD_END_LOC" />
<CONSTANT value="yyyymmddhh24miss" datatype="VARCHAR" size="16" />
</FUNCTION_CALL>
<CONSTANT value=":" datatype="VARCHAR" size="1" />
</CONCAT>
<FUNCTION_CALL name="substr"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Calc_Duration" column="MD_BUSINESS_KEY" />
<CONSTANT value="16" datatype="INT" />
<SUBTRACT>
<FUNCTION_CALL name="length"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Calc_Duration" column="MD_BUSINESS_KEY" />
</FUNCTION_CALL>
<CONSTANT value="15" datatype="INT" />
</SUBTRACT>
</FUNCTION_CALL>
</CONCAT>
</DIExpression>
<DIExpression isString="true" expr="Calc_Duration.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="Calc_Duration" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Duration.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="Calc_Duration" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Duration.DATE_STATUS_START_LOC" >
<COLUMN_REFERENCE  qualifier1="Calc_Duration" column="DATE_STATUS_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Duration.DATE_STATUS_START_UTC" >
<COLUMN_REFERENCE  qualifier1="Calc_Duration" column="DATE_STATUS_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Duration.COMPLIANCE_STATUS" >
<COLUMN_REFERENCE  qualifier1="Calc_Duration" column="COMPLIANCE_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Duration.POLICY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Calc_Duration" column="POLICY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr="Calc_Duration.NODE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Calc_Duration" column="NODE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr="Calc_Duration.DATE_RECORD_START_LOC" >
<COLUMN_REFERENCE  qualifier1="Calc_Duration" column="DATE_RECORD_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Duration.DATE_RECORD_START_UTC" >
<COLUMN_REFERENCE  qualifier1="Calc_Duration" column="DATE_RECORD_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Duration.DURATION" >
<COLUMN_REFERENCE  qualifier1="Calc_Duration" column="DURATION" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Duration.PERIOD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Calc_Duration" column="PERIOD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Duration.PERIOD_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="Calc_Duration" column="PERIOD_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="((to_char(Calc_Duration.DATE_RECORD_END_LOC, 'yyyymmddhh24miss') || ':') || substr(Calc_Duration.MD_BUSINESS_KEY, 16, (length(Calc_Duration.MD_BUSINESS_KEY) - 15)))" >
<CONCAT>
<CONCAT>
<FUNCTION_CALL name="to_char"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Calc_Duration" column="DATE_RECORD_END_LOC" />
<CONSTANT value="yyyymmddhh24miss" datatype="VARCHAR" size="16" />
</FUNCTION_CALL>
<CONSTANT value=":" datatype="VARCHAR" size="1" />
</CONCAT>
<FUNCTION_CALL name="substr"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Calc_Duration" column="MD_BUSINESS_KEY" />
<CONSTANT value="16" datatype="INT" />
<SUBTRACT>
<FUNCTION_CALL name="length"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Calc_Duration" column="MD_BUSINESS_KEY" />
</FUNCTION_CALL>
<CONSTANT value="15" datatype="INT" />
</SUBTRACT>
</FUNCTION_CALL>
</CONCAT>
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Calc_Duration" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIInputView name="Query_UTC"  />
<DIInputView name="Query_UTC_Date"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>
<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="SA_COMPLIANCE_STATUS_SSNP" >
<DIOutputView name="SA_COMPLIANCE_STATUS_SSNP_1"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="SA_COMPLIANCE_STATUS_SSNP_1"/>
<DIAttribute name="ui_display_name" value="Filter_Last_INS_Rows_1"/>
</DIUIOptions>
<DISchema name="Filter_Last_INS_Rows_1" >
<DIElement name="NODE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to NODE_DIM"/>
<DIAttribute name="ui_mapping_text" value="SA_COMPLIANCE_STATUS_SSNP_1.NODE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to POLICY_DIM"/>
<DIAttribute name="ui_mapping_text" value="SA_COMPLIANCE_STATUS_SSNP_1.POLICY_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MAX_DATE_RECORD_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="max(SA_COMPLIANCE_STATUS_SSNP_1.DATE_RECORD_START_LOC)"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_COMPLIANCE_STATUS_SSNP_1.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="SA_COMPLIANCE_STATUS_SSNP_1.NODE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="SA_COMPLIANCE_STATUS_SSNP_1" column="NODE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="SA_COMPLIANCE_STATUS_SSNP_1.POLICY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="SA_COMPLIANCE_STATUS_SSNP_1" column="POLICY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="max(SA_COMPLIANCE_STATUS_SSNP_1.DATE_RECORD_START_LOC)" >
<FUNCTION_CALL name="max"  type="DI" >
<COLUMN_REFERENCE  qualifier1="SA_COMPLIANCE_STATUS_SSNP_1" column="DATE_RECORD_START_LOC" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="SA_COMPLIANCE_STATUS_SSNP_1.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="SA_COMPLIANCE_STATUS_SSNP_1" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="SA_COMPLIANCE_STATUS_SSNP_1" />
</DIFrom>
<DIGroupBy>
<DIExpression isString="true" expr="SA_COMPLIANCE_STATUS_SSNP_1.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="SA_COMPLIANCE_STATUS_SSNP_1" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="SA_COMPLIANCE_STATUS_SSNP_1.NODE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="SA_COMPLIANCE_STATUS_SSNP_1" column="NODE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="SA_COMPLIANCE_STATUS_SSNP_1.POLICY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="SA_COMPLIANCE_STATUS_SSNP_1" column="POLICY_BUSINESS_KEY" />
</DIExpression>
</DIGroupBy>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Filter_Last_INS_Rows_1"/>
<DIAttribute name="ui_acta_from_schema_1" value="SA_COMPLIANCE_STATUS_SSNP_1"/>
<DIAttribute name="ui_display_name" value="Join_And_Calc_EndDate"/>
<DIAttribute name="ui_where_text" value="(SA_COMPLIANCE_STATUS_SSNP_1.NODE_BUSINESS_KEY = Filter_Last_INS_Rows_1.NODE_BUSINESS_KEY) &#xD;&#xA;AND&#xD;&#xA;(SA_COMPLIANCE_STATUS_SSNP_1.POLICY_BUSINESS_KEY = Filter_Last_INS_Rows_1.POLICY_BUSINESS_KEY) &#xD;&#xA;AND&#xD;&#xA;(SA_COMPLIANCE_STATUS_SSNP_1.DATE_RECORD_START_LOC = Filter_Last_INS_Rows_1.MAX_DATE_RECORD_START_LOC) &#xD;&#xA;AND&#xD;&#xA;SA_COMPLIANCE_STATUS_SSNP_1.MD_CP_ID = Filter_Last_INS_Rows_1.MD_CP_ID"/>
</DIUIOptions>
<DISchema name="Join_And_Calc_EndDate" >
<DIElement name="NODE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to NODE_DIM"/>
<DIAttribute name="ui_mapping_text" value="Filter_Last_INS_Rows_1.NODE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to POLICY_DIM"/>
<DIAttribute name="ui_mapping_text" value="Filter_Last_INS_Rows_1.POLICY_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COMPLIANCE_STATUS" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Status of compliance"/>
<DIAttribute name="ui_mapping_text" value="SA_COMPLIANCE_STATUS_SSNP_1.COMPLIANCE_STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_END_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="(Filter_Last_INS_Rows_1.MAX_DATE_RECORD_START_LOC + num_to_interval(SA_COMPLIANCE_STATUS_SSNP_1.DURATION, 'M'))"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_STATUS_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_COMPLIANCE_STATUS_SSNP_1.DATE_STATUS_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date of status start within the measured day"/>
<DIAttribute name="ui_mapping_text" value="SA_COMPLIANCE_STATUS_SSNP_1.DATE_RECORD_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_COMPLIANCE_STATUS_SSNP_1.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="DURATION" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Duration of status"/>
<DIAttribute name="ui_mapping_text" value="SA_COMPLIANCE_STATUS_SSNP_1.DURATION"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_COMPLIANCE_STATUS_SSNP_1.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="Filter_Last_INS_Rows_1.NODE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Filter_Last_INS_Rows_1" column="NODE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Filter_Last_INS_Rows_1.POLICY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Filter_Last_INS_Rows_1" column="POLICY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="SA_COMPLIANCE_STATUS_SSNP_1.COMPLIANCE_STATUS" >
<COLUMN_REFERENCE  qualifier1="SA_COMPLIANCE_STATUS_SSNP_1" column="COMPLIANCE_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="(Filter_Last_INS_Rows_1.MAX_DATE_RECORD_START_LOC + num_to_interval(SA_COMPLIANCE_STATUS_SSNP_1.DURATION, 'M'))" >
<ADD>
<COLUMN_REFERENCE  qualifier1="Filter_Last_INS_Rows_1" column="MAX_DATE_RECORD_START_LOC" />
<FUNCTION_CALL name="num_to_interval"  type="DI" >
<COLUMN_REFERENCE  qualifier1="SA_COMPLIANCE_STATUS_SSNP_1" column="DURATION" />
<CONSTANT value="M" datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</ADD>
</DIExpression>
<DIExpression isString="true" expr="SA_COMPLIANCE_STATUS_SSNP_1.DATE_STATUS_START_LOC" >
<COLUMN_REFERENCE  qualifier1="SA_COMPLIANCE_STATUS_SSNP_1" column="DATE_STATUS_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="SA_COMPLIANCE_STATUS_SSNP_1.DATE_RECORD_START_LOC" >
<COLUMN_REFERENCE  qualifier1="SA_COMPLIANCE_STATUS_SSNP_1" column="DATE_RECORD_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="SA_COMPLIANCE_STATUS_SSNP_1.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="SA_COMPLIANCE_STATUS_SSNP_1" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="SA_COMPLIANCE_STATUS_SSNP_1.DURATION" >
<COLUMN_REFERENCE  qualifier1="SA_COMPLIANCE_STATUS_SSNP_1" column="DURATION" />
</DIExpression>
<DIExpression isString="true" expr="SA_COMPLIANCE_STATUS_SSNP_1.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="SA_COMPLIANCE_STATUS_SSNP_1" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Filter_Last_INS_Rows_1" />
<DITableSpec name="SA_COMPLIANCE_STATUS_SSNP_1" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="((((SA_COMPLIANCE_STATUS_SSNP_1.NODE_BUSINESS_KEY = Filter_Last_INS_Rows_1.NODE_BUSINESS_KEY) AND&#xA;   (SA_COMPLIANCE_STATUS_SSNP_1.POLICY_BUSINESS_KEY = Filter_Last_INS_Rows_1.POLICY_BUSINESS_KEY)) AND&#xA;   (SA_COMPLIANCE_STATUS_SSNP_1.DATE_RECORD_START_LOC = Filter_Last_INS_Rows_1.MAX_DATE_RECORD_START_LOC)) AND&#xA;   (SA_COMPLIANCE_STATUS_SSNP_1.MD_CP_ID = Filter_Last_INS_Rows_1.MD_CP_ID))" >
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="SA_COMPLIANCE_STATUS_SSNP_1" column="NODE_BUSINESS_KEY" />
<COLUMN_REFERENCE  qualifier1="Filter_Last_INS_Rows_1" column="NODE_BUSINESS_KEY" />
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="SA_COMPLIANCE_STATUS_SSNP_1" column="POLICY_BUSINESS_KEY" />
<COLUMN_REFERENCE  qualifier1="Filter_Last_INS_Rows_1" column="POLICY_BUSINESS_KEY" />
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="SA_COMPLIANCE_STATUS_SSNP_1" column="DATE_RECORD_START_LOC" />
<COLUMN_REFERENCE  qualifier1="Filter_Last_INS_Rows_1" column="MAX_DATE_RECORD_START_LOC" />
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="SA_COMPLIANCE_STATUS_SSNP_1" column="MD_CP_ID" />
<COLUMN_REFERENCE  qualifier1="Filter_Last_INS_Rows_1" column="MD_CP_ID" />
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Join_And_Calc_EndDate"/>
<DIAttribute name="ui_display_name" value="Query_UTC_Date"/>
</DIUIOptions>
<DISchema name="Query_UTC_Date" >
<DIElement name="DATE_STATUS_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Join_And_Calc_EndDate.DATE_STATUS_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_STATUS_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="DW_DATE_TO_UTC(Join_And_Calc_EndDate.DATE_STATUS_START_LOC)"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date of status start within the measured day"/>
<DIAttribute name="ui_mapping_text" value="Join_And_Calc_EndDate.DATE_RECORD_END_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date of status start within the measured day"/>
<DIAttribute name="ui_mapping_text" value="DW_DATE_TO_UTC(Join_And_Calc_EndDate.DATE_RECORD_END_LOC)"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_END_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="DW_DATE_TO_UTC($P_EXTRACTION_DATE)"/>
</DIAttributes>
</DIElement>
<DIElement name="DURATION" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Duration of status"/>
<DIAttribute name="ui_mapping_text" value="Join_And_Calc_EndDate.DURATION"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Join_And_Calc_EndDate.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="null"/>
</DIAttributes>
</DIElement>
<DIElement name="COMPLIANCE_STATUS" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Status of compliance"/>
<DIAttribute name="ui_mapping_text" value="Join_And_Calc_EndDate.COMPLIANCE_STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to POLICY_DIM"/>
<DIAttribute name="ui_mapping_text" value="Join_And_Calc_EndDate.POLICY_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to NODE_DIM"/>
<DIAttribute name="ui_mapping_text" value="Join_And_Calc_EndDate.NODE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Join_And_Calc_EndDate.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="Join_And_Calc_EndDate.DATE_STATUS_START_LOC" >
<COLUMN_REFERENCE  qualifier1="Join_And_Calc_EndDate" column="DATE_STATUS_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="dw_date_to_utc(Join_And_Calc_EndDate.DATE_STATUS_START_LOC)" >
<FUNCTION_CALL name="dw_date_to_utc"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Join_And_Calc_EndDate" column="DATE_STATUS_START_LOC" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="Join_And_Calc_EndDate.DATE_RECORD_END_LOC" >
<COLUMN_REFERENCE  qualifier1="Join_And_Calc_EndDate" column="DATE_RECORD_END_LOC" />
</DIExpression>
<DIExpression isString="true" expr="dw_date_to_utc(Join_And_Calc_EndDate.DATE_RECORD_END_LOC)" >
<FUNCTION_CALL name="dw_date_to_utc"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Join_And_Calc_EndDate" column="DATE_RECORD_END_LOC" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="dw_date_to_utc($P_EXTRACTION_DATE)" >
<FUNCTION_CALL name="dw_date_to_utc"  type="DI" >
<VARIABLE_REFERENCE name="$P_EXTRACTION_DATE" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="Join_And_Calc_EndDate.DURATION" >
<COLUMN_REFERENCE  qualifier1="Join_And_Calc_EndDate" column="DURATION" />
</DIExpression>
<DIExpression isString="true" expr="Join_And_Calc_EndDate.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Join_And_Calc_EndDate" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr="Join_And_Calc_EndDate.COMPLIANCE_STATUS" >
<COLUMN_REFERENCE  qualifier1="Join_And_Calc_EndDate" column="COMPLIANCE_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="Join_And_Calc_EndDate.POLICY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Join_And_Calc_EndDate" column="POLICY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Join_And_Calc_EndDate.NODE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Join_And_Calc_EndDate" column="NODE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="Join_And_Calc_EndDate.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="Join_And_Calc_EndDate" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Join_And_Calc_EndDate" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Query_Previous_Row"/>
<DIAttribute name="ui_display_name" value="Update_Record_End_Date"/>
</DIUIOptions>
<DISchema name="Update_Record_End_Date" >
<DIElement name="DATE_STATUS_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_Previous_Row.DATE_STATUS_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_STATUS_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_Previous_Row.DATE_STATUS_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_Previous_Row.DATE_RECORD_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_Previous_Row.DATE_RECORD_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_END_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ifthenelse(&#xD;&#xA;(Query_Previous_Row.MD_CP_ID  = Query_Previous_Row.MD_CP_ID_LAST_ROW) &#xD;&#xA;AND   (Query_Previous_Row.NODE_BUSINESS_KEY = Query_Previous_Row.NODE_BUSINESS_KEY_LAST_ROW) &#xD;&#xA;AND   (Query_Previous_Row.POLICY_BUSINESS_KEY = Query_Previous_Row.POLICY_BUSINESS_KEY_LAST_ROW)&#xD;&#xA;AND   (Query_Previous_Row.COMPLIANCE_STATUS = Query_Previous_Row.COMPLIANCE_STATUS_LAST_ROW), &#xD;&#xA;Query_Previous_Row.DATE_RECORD_START_UTC_LAST_ROW, &#xD;&#xA;Query_Previous_Row.DATE_RECORD_END_UTC&#xD;&#xA;)"/>
</DIAttributes>
</DIElement>
<DIElement name="DURATION" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_Previous_Row.DURATION"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_Previous_Row.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_Previous_Row.PERIOD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COMPLIANCE_STATUS" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_Previous_Row.COMPLIANCE_STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_Previous_Row.POLICY_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_Previous_Row.NODE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_Previous_Row.MD_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_Previous_Row.MD_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_STATUS_START_LOC_LAST_ROW" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_Previous_Row.DATE_STATUS_START_LOC_LAST_ROW"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_STATUS_START_UTC_LAST_ROW" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_Previous_Row.DATE_STATUS_START_UTC_LAST_ROW"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_START_UTC_LAST_ROW" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date of status start within the measured day"/>
<DIAttribute name="ui_mapping_text" value="Query_Previous_Row.DATE_RECORD_START_UTC_LAST_ROW"/>
</DIAttributes>
</DIElement>
<DIElement name="COMPLIANCE_STATUS_LAST_ROW" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Status of compliance"/>
<DIAttribute name="ui_mapping_text" value="Query_Previous_Row.COMPLIANCE_STATUS_LAST_ROW"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_BUSINESS_KEY_LAST_ROW" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to POLICY_DIM"/>
<DIAttribute name="ui_mapping_text" value="Query_Previous_Row.POLICY_BUSINESS_KEY_LAST_ROW"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_BUSINESS_KEY_LAST_ROW" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to NODE_DIM"/>
<DIAttribute name="ui_mapping_text" value="Query_Previous_Row.NODE_BUSINESS_KEY_LAST_ROW"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID_LAST_ROW" datatype="DECIMAL" precision="28" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_Previous_Row.MD_CP_ID_LAST_ROW"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_Previous_Row.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="Query_Previous_Row.DATE_STATUS_START_LOC" >
<COLUMN_REFERENCE  qualifier1="Query_Previous_Row" column="DATE_STATUS_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="Query_Previous_Row.DATE_STATUS_START_UTC" >
<COLUMN_REFERENCE  qualifier1="Query_Previous_Row" column="DATE_STATUS_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="Query_Previous_Row.DATE_RECORD_START_LOC" >
<COLUMN_REFERENCE  qualifier1="Query_Previous_Row" column="DATE_RECORD_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="Query_Previous_Row.DATE_RECORD_START_UTC" >
<COLUMN_REFERENCE  qualifier1="Query_Previous_Row" column="DATE_RECORD_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="ifthenelse(((((Query_Previous_Row.MD_CP_ID = Query_Previous_Row.MD_CP_ID_LAST_ROW) AND&#xA;   (Query_Previous_Row.NODE_BUSINESS_KEY = Query_Previous_Row.NODE_BUSINESS_KEY_LAST_ROW)) AND&#xA;   (Query_Previous_Row.POLICY_BUSINESS_KEY = Query_Previous_Row.POLICY_BUSINESS_KEY_LAST_ROW)) AND&#xA;   (Query_Previous_Row.COMPLIANCE_STATUS = Query_Previous_Row.COMPLIANCE_STATUS_LAST_ROW)), Query_Previous_Row.DATE_RECORD_START_UTC_LAST_ROW, Query_Previous_Row.DATE_RECORD_END_UTC)" >
<FUNCTION_CALL name="ifthenelse"  type="DI" >
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="Query_Previous_Row" column="MD_CP_ID" />
<COLUMN_REFERENCE  qualifier1="Query_Previous_Row" column="MD_CP_ID_LAST_ROW" />
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="Query_Previous_Row" column="NODE_BUSINESS_KEY" />
<COLUMN_REFERENCE  qualifier1="Query_Previous_Row" column="NODE_BUSINESS_KEY_LAST_ROW" />
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="Query_Previous_Row" column="POLICY_BUSINESS_KEY" />
<COLUMN_REFERENCE  qualifier1="Query_Previous_Row" column="POLICY_BUSINESS_KEY_LAST_ROW" />
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="Query_Previous_Row" column="COMPLIANCE_STATUS" />
<COLUMN_REFERENCE  qualifier1="Query_Previous_Row" column="COMPLIANCE_STATUS_LAST_ROW" />
</LOGICAL_OP>
</LOGICAL_OP>
<COLUMN_REFERENCE  qualifier1="Query_Previous_Row" column="DATE_RECORD_START_UTC_LAST_ROW" />
<COLUMN_REFERENCE  qualifier1="Query_Previous_Row" column="DATE_RECORD_END_UTC" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="Query_Previous_Row.DURATION" >
<COLUMN_REFERENCE  qualifier1="Query_Previous_Row" column="DURATION" />
</DIExpression>
<DIExpression isString="true" expr="Query_Previous_Row.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Query_Previous_Row" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Query_Previous_Row.PERIOD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Query_Previous_Row" column="PERIOD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Query_Previous_Row.COMPLIANCE_STATUS" >
<COLUMN_REFERENCE  qualifier1="Query_Previous_Row" column="COMPLIANCE_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="Query_Previous_Row.POLICY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Query_Previous_Row" column="POLICY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Query_Previous_Row.NODE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Query_Previous_Row" column="NODE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Query_Previous_Row.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="Query_Previous_Row" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="Query_Previous_Row.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="Query_Previous_Row" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="Query_Previous_Row.DATE_STATUS_START_LOC_LAST_ROW" >
<COLUMN_REFERENCE  qualifier1="Query_Previous_Row" column="DATE_STATUS_START_LOC_LAST_ROW" />
</DIExpression>
<DIExpression isString="true" expr="Query_Previous_Row.DATE_STATUS_START_UTC_LAST_ROW" >
<COLUMN_REFERENCE  qualifier1="Query_Previous_Row" column="DATE_STATUS_START_UTC_LAST_ROW" />
</DIExpression>
<DIExpression isString="true" expr="Query_Previous_Row.DATE_RECORD_START_UTC_LAST_ROW" >
<COLUMN_REFERENCE  qualifier1="Query_Previous_Row" column="DATE_RECORD_START_UTC_LAST_ROW" />
</DIExpression>
<DIExpression isString="true" expr="Query_Previous_Row.COMPLIANCE_STATUS_LAST_ROW" >
<COLUMN_REFERENCE  qualifier1="Query_Previous_Row" column="COMPLIANCE_STATUS_LAST_ROW" />
</DIExpression>
<DIExpression isString="true" expr="Query_Previous_Row.POLICY_BUSINESS_KEY_LAST_ROW" >
<COLUMN_REFERENCE  qualifier1="Query_Previous_Row" column="POLICY_BUSINESS_KEY_LAST_ROW" />
</DIExpression>
<DIExpression isString="true" expr="Query_Previous_Row.NODE_BUSINESS_KEY_LAST_ROW" >
<COLUMN_REFERENCE  qualifier1="Query_Previous_Row" column="NODE_BUSINESS_KEY_LAST_ROW" />
</DIExpression>
<DIExpression isString="true" expr="Query_Previous_Row.MD_CP_ID_LAST_ROW" >
<COLUMN_REFERENCE  qualifier1="Query_Previous_Row" column="MD_CP_ID_LAST_ROW" />
</DIExpression>
<DIExpression isString="true" expr="Query_Previous_Row.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="Query_Previous_Row" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Query_Previous_Row" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Update_Record_End_Date"/>
<DIAttribute name="ui_display_name" value="Calc_Record_DURATION"/>
</DIUIOptions>
<DISchema name="Calc_Record_DURATION" >
<DIElement name="DATE_STATUS_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Update_Record_End_Date.DATE_STATUS_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_STATUS_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Update_Record_End_Date.DATE_STATUS_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Update_Record_End_Date.DATE_RECORD_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Update_Record_End_Date.DATE_RECORD_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_END_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Update_Record_End_Date.DATE_RECORD_END_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DURATION" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ifthenelse( &#xD;&#xA;Update_Record_End_Date.DATE_RECORD_END_UTC &gt;= Update_Record_End_Date.DATE_RECORD_START_UTC, &#xD;&#xA;date_diff(Update_Record_End_Date.DATE_RECORD_END_UTC, Update_Record_End_Date.DATE_RECORD_START_UTC, 'M'), &#xD;&#xA;0&#xD;&#xA;)"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Update_Record_End_Date.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Update_Record_End_Date.PERIOD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COMPLIANCE_STATUS" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Update_Record_End_Date.COMPLIANCE_STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Update_Record_End_Date.POLICY_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Update_Record_End_Date.NODE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Update_Record_End_Date.MD_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Update_Record_End_Date.MD_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="RANK" datatype="INT" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="calc_compliancestatus_groups(&#xD;&#xA;Update_Record_End_Date.NODE_BUSINESS_KEY_LAST_ROW, &#xD;&#xA;Update_Record_End_Date.NODE_BUSINESS_KEY, &#xD;&#xA;Update_Record_End_Date.POLICY_BUSINESS_KEY_LAST_ROW, &#xD;&#xA;Update_Record_End_Date.POLICY_BUSINESS_KEY, &#xD;&#xA;Update_Record_End_Date.COMPLIANCE_STATUS_LAST_ROW, &#xD;&#xA;Update_Record_End_Date.COMPLIANCE_STATUS, &#xD;&#xA;Update_Record_End_Date.DATE_RECORD_START_UTC_LAST_ROW, &#xD;&#xA;Update_Record_End_Date.DATE_RECORD_END_UTC, &#xD;&#xA;Update_Record_End_Date.MD_CP_ID_LAST_ROW, &#xD;&#xA;Update_Record_End_Date.MD_CP_ID)"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Update_Record_End_Date.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="Update_Record_End_Date.DATE_STATUS_START_LOC" >
<COLUMN_REFERENCE  qualifier1="Update_Record_End_Date" column="DATE_STATUS_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="Update_Record_End_Date.DATE_STATUS_START_UTC" >
<COLUMN_REFERENCE  qualifier1="Update_Record_End_Date" column="DATE_STATUS_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="Update_Record_End_Date.DATE_RECORD_START_LOC" >
<COLUMN_REFERENCE  qualifier1="Update_Record_End_Date" column="DATE_RECORD_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="Update_Record_End_Date.DATE_RECORD_START_UTC" >
<COLUMN_REFERENCE  qualifier1="Update_Record_End_Date" column="DATE_RECORD_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="Update_Record_End_Date.DATE_RECORD_END_UTC" >
<COLUMN_REFERENCE  qualifier1="Update_Record_End_Date" column="DATE_RECORD_END_UTC" />
</DIExpression>
<DIExpression isString="true" expr="ifthenelse((Update_Record_End_Date.DATE_RECORD_END_UTC &gt;= Update_Record_End_Date.DATE_RECORD_START_UTC), date_diff(Update_Record_End_Date.DATE_RECORD_END_UTC, Update_Record_End_Date.DATE_RECORD_START_UTC, 'M'), 0)" >
<FUNCTION_CALL name="ifthenelse"  type="DI" >
<LOGICAL_OP op="GE">
<COLUMN_REFERENCE  qualifier1="Update_Record_End_Date" column="DATE_RECORD_END_UTC" />
<COLUMN_REFERENCE  qualifier1="Update_Record_End_Date" column="DATE_RECORD_START_UTC" />
</LOGICAL_OP>
<FUNCTION_CALL name="date_diff"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Update_Record_End_Date" column="DATE_RECORD_END_UTC" />
<COLUMN_REFERENCE  qualifier1="Update_Record_End_Date" column="DATE_RECORD_START_UTC" />
<CONSTANT value="M" datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
<CONSTANT value="0" datatype="INT" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="Update_Record_End_Date.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Update_Record_End_Date" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Update_Record_End_Date.PERIOD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Update_Record_End_Date" column="PERIOD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Update_Record_End_Date.COMPLIANCE_STATUS" >
<COLUMN_REFERENCE  qualifier1="Update_Record_End_Date" column="COMPLIANCE_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="Update_Record_End_Date.POLICY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Update_Record_End_Date" column="POLICY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Update_Record_End_Date.NODE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Update_Record_End_Date" column="NODE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Update_Record_End_Date.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="Update_Record_End_Date" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="Update_Record_End_Date.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="Update_Record_End_Date" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="calc_compliancestatus_groups(Update_Record_End_Date.NODE_BUSINESS_KEY_LAST_ROW, Update_Record_End_Date.NODE_BUSINESS_KEY, Update_Record_End_Date.POLICY_BUSINESS_KEY_LAST_ROW, Update_Record_End_Date.POLICY_BUSINESS_KEY, Update_Record_End_Date.COMPLIANCE_STATUS_LAST_ROW, Update_Record_End_Date.COMPLIANCE_STATUS, Update_Record_End_Date.DATE_RECORD_START_UTC_LAST_ROW, Update_Record_End_Date.DATE_RECORD_END_UTC, Update_Record_End_Date.MD_CP_ID_LAST_ROW, Update_Record_End_Date.MD_CP_ID)" >
<FUNCTION_CALL name="calc_compliancestatus_groups"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Update_Record_End_Date" column="NODE_BUSINESS_KEY_LAST_ROW" />
<COLUMN_REFERENCE  qualifier1="Update_Record_End_Date" column="NODE_BUSINESS_KEY" />
<COLUMN_REFERENCE  qualifier1="Update_Record_End_Date" column="POLICY_BUSINESS_KEY_LAST_ROW" />
<COLUMN_REFERENCE  qualifier1="Update_Record_End_Date" column="POLICY_BUSINESS_KEY" />
<COLUMN_REFERENCE  qualifier1="Update_Record_End_Date" column="COMPLIANCE_STATUS_LAST_ROW" />
<COLUMN_REFERENCE  qualifier1="Update_Record_End_Date" column="COMPLIANCE_STATUS" />
<COLUMN_REFERENCE  qualifier1="Update_Record_End_Date" column="DATE_RECORD_START_UTC_LAST_ROW" />
<COLUMN_REFERENCE  qualifier1="Update_Record_End_Date" column="DATE_RECORD_END_UTC" />
<COLUMN_REFERENCE  qualifier1="Update_Record_End_Date" column="MD_CP_ID_LAST_ROW" />
<COLUMN_REFERENCE  qualifier1="Update_Record_End_Date" column="MD_CP_ID" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="Update_Record_End_Date.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="Update_Record_End_Date" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Update_Record_End_Date" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Merge"/>
<DIAttribute name="ui_display_name" value="Sort_For_Record_End_Date"/>
</DIUIOptions>
<DISchema name="Sort_For_Record_End_Date" >
<DIElement name="DATE_STATUS_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge.DATE_STATUS_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_STATUS_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge.DATE_STATUS_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date of status start within the measured day"/>
<DIAttribute name="ui_mapping_text" value="Merge.DATE_RECORD_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date of status start within the measured day"/>
<DIAttribute name="ui_mapping_text" value="Merge.DATE_RECORD_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_END_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge.DATE_RECORD_END_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DURATION" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Duration of status"/>
<DIAttribute name="ui_mapping_text" value="Merge.DURATION"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge.PERIOD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COMPLIANCE_STATUS" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Status of compliance"/>
<DIAttribute name="ui_mapping_text" value="Merge.COMPLIANCE_STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to POLICY_DIM"/>
<DIAttribute name="ui_mapping_text" value="Merge.POLICY_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to NODE_DIM"/>
<DIAttribute name="ui_mapping_text" value="Merge.NODE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge.MD_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge.MD_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="Merge.DATE_STATUS_START_LOC" >
<COLUMN_REFERENCE  qualifier1="Merge" column="DATE_STATUS_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="Merge.DATE_STATUS_START_UTC" >
<COLUMN_REFERENCE  qualifier1="Merge" column="DATE_STATUS_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="Merge.DATE_RECORD_START_LOC" >
<COLUMN_REFERENCE  qualifier1="Merge" column="DATE_RECORD_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="Merge.DATE_RECORD_START_UTC" >
<COLUMN_REFERENCE  qualifier1="Merge" column="DATE_RECORD_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="Merge.DATE_RECORD_END_UTC" >
<COLUMN_REFERENCE  qualifier1="Merge" column="DATE_RECORD_END_UTC" />
</DIExpression>
<DIExpression isString="true" expr="Merge.DURATION" >
<COLUMN_REFERENCE  qualifier1="Merge" column="DURATION" />
</DIExpression>
<DIExpression isString="true" expr="Merge.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Merge" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Merge.PERIOD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Merge" column="PERIOD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Merge.COMPLIANCE_STATUS" >
<COLUMN_REFERENCE  qualifier1="Merge" column="COMPLIANCE_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="Merge.POLICY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Merge" column="POLICY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Merge.NODE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Merge" column="NODE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Merge.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="Merge" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="Merge.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="Merge" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="Merge.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="Merge" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Merge" />
</DIFrom>
<DIOrderBys>
<DIOrderBy direction="ASC">
<DIExpression isString="true" expr="Merge.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="Merge" column="MD_CP_ID" />
</DIExpression>
</DIOrderBy>
<DIOrderBy direction="ASC">
<DIExpression isString="true" expr="Merge.NODE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Merge" column="NODE_BUSINESS_KEY" />
</DIExpression>
</DIOrderBy>
<DIOrderBy direction="ASC">
<DIExpression isString="true" expr="Merge.POLICY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Merge" column="POLICY_BUSINESS_KEY" />
</DIExpression>
</DIOrderBy>
<DIOrderBy direction="DESC">
<DIExpression isString="true" expr="Merge.DATE_STATUS_START_LOC" >
<COLUMN_REFERENCE  qualifier1="Merge" column="DATE_STATUS_START_LOC" />
</DIExpression>
</DIOrderBy>
</DIOrderBys>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Sort_For_Record_End_Date"/>
<DIAttribute name="ui_display_name" value="Query_Previous_Row"/>
</DIUIOptions>
<DISchema name="Query_Previous_Row" >
<DIElement name="DATE_STATUS_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Sort_For_Record_End_Date.DATE_STATUS_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_STATUS_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Sort_For_Record_End_Date.DATE_STATUS_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date of status start within the measured day"/>
<DIAttribute name="ui_mapping_text" value="Sort_For_Record_End_Date.DATE_RECORD_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date of status start within the measured day"/>
<DIAttribute name="ui_mapping_text" value="Sort_For_Record_End_Date.DATE_RECORD_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_END_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Sort_For_Record_End_Date.DATE_RECORD_END_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DURATION" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Duration of status"/>
<DIAttribute name="ui_mapping_text" value="Sort_For_Record_End_Date.DURATION"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Sort_For_Record_End_Date.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Sort_For_Record_End_Date.PERIOD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COMPLIANCE_STATUS" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Status of compliance"/>
<DIAttribute name="ui_mapping_text" value="Sort_For_Record_End_Date.COMPLIANCE_STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to POLICY_DIM"/>
<DIAttribute name="ui_mapping_text" value="Sort_For_Record_End_Date.POLICY_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to NODE_DIM"/>
<DIAttribute name="ui_mapping_text" value="Sort_For_Record_End_Date.NODE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Sort_For_Record_End_Date.MD_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Sort_For_Record_End_Date.MD_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_STATUS_START_LOC_LAST_ROW" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="previous_row_value(Sort_For_Record_End_Date.DATE_STATUS_START_LOC)"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_STATUS_START_UTC_LAST_ROW" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="previous_row_value(Sort_For_Record_End_Date.DATE_STATUS_START_UTC)"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_START_UTC_LAST_ROW" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date of status start within the measured day"/>
<DIAttribute name="ui_mapping_text" value="previous_row_value(Sort_For_Record_End_Date.DATE_RECORD_START_UTC)"/>
</DIAttributes>
</DIElement>
<DIElement name="COMPLIANCE_STATUS_LAST_ROW" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Status of compliance"/>
<DIAttribute name="ui_mapping_text" value="previous_row_value(Sort_For_Record_End_Date.COMPLIANCE_STATUS)"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_BUSINESS_KEY_LAST_ROW" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to POLICY_DIM"/>
<DIAttribute name="ui_mapping_text" value="previous_row_value(Sort_For_Record_End_Date.POLICY_BUSINESS_KEY)"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_BUSINESS_KEY_LAST_ROW" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to NODE_DIM"/>
<DIAttribute name="ui_mapping_text" value="previous_row_value(Sort_For_Record_End_Date.NODE_BUSINESS_KEY)"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID_LAST_ROW" datatype="DECIMAL" precision="28" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="previous_row_value(Sort_For_Record_End_Date.MD_CP_ID)"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Sort_For_Record_End_Date.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="Sort_For_Record_End_Date.DATE_STATUS_START_LOC" >
<COLUMN_REFERENCE  qualifier1="Sort_For_Record_End_Date" column="DATE_STATUS_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="Sort_For_Record_End_Date.DATE_STATUS_START_UTC" >
<COLUMN_REFERENCE  qualifier1="Sort_For_Record_End_Date" column="DATE_STATUS_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="Sort_For_Record_End_Date.DATE_RECORD_START_LOC" >
<COLUMN_REFERENCE  qualifier1="Sort_For_Record_End_Date" column="DATE_RECORD_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="Sort_For_Record_End_Date.DATE_RECORD_START_UTC" >
<COLUMN_REFERENCE  qualifier1="Sort_For_Record_End_Date" column="DATE_RECORD_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="Sort_For_Record_End_Date.DATE_RECORD_END_UTC" >
<COLUMN_REFERENCE  qualifier1="Sort_For_Record_End_Date" column="DATE_RECORD_END_UTC" />
</DIExpression>
<DIExpression isString="true" expr="Sort_For_Record_End_Date.DURATION" >
<COLUMN_REFERENCE  qualifier1="Sort_For_Record_End_Date" column="DURATION" />
</DIExpression>
<DIExpression isString="true" expr="Sort_For_Record_End_Date.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Sort_For_Record_End_Date" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Sort_For_Record_End_Date.PERIOD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Sort_For_Record_End_Date" column="PERIOD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Sort_For_Record_End_Date.COMPLIANCE_STATUS" >
<COLUMN_REFERENCE  qualifier1="Sort_For_Record_End_Date" column="COMPLIANCE_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="Sort_For_Record_End_Date.POLICY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Sort_For_Record_End_Date" column="POLICY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Sort_For_Record_End_Date.NODE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Sort_For_Record_End_Date" column="NODE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Sort_For_Record_End_Date.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="Sort_For_Record_End_Date" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="Sort_For_Record_End_Date.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="Sort_For_Record_End_Date" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="previous_row_value(Sort_For_Record_End_Date.DATE_STATUS_START_LOC)" >
<FUNCTION_CALL name="previous_row_value"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Sort_For_Record_End_Date" column="DATE_STATUS_START_LOC" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="previous_row_value(Sort_For_Record_End_Date.DATE_STATUS_START_UTC)" >
<FUNCTION_CALL name="previous_row_value"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Sort_For_Record_End_Date" column="DATE_STATUS_START_UTC" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="previous_row_value(Sort_For_Record_End_Date.DATE_RECORD_START_UTC)" >
<FUNCTION_CALL name="previous_row_value"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Sort_For_Record_End_Date" column="DATE_RECORD_START_UTC" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="previous_row_value(Sort_For_Record_End_Date.COMPLIANCE_STATUS)" >
<FUNCTION_CALL name="previous_row_value"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Sort_For_Record_End_Date" column="COMPLIANCE_STATUS" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="previous_row_value(Sort_For_Record_End_Date.POLICY_BUSINESS_KEY)" >
<FUNCTION_CALL name="previous_row_value"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Sort_For_Record_End_Date" column="POLICY_BUSINESS_KEY" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="previous_row_value(Sort_For_Record_End_Date.NODE_BUSINESS_KEY)" >
<FUNCTION_CALL name="previous_row_value"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Sort_For_Record_End_Date" column="NODE_BUSINESS_KEY" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="previous_row_value(Sort_For_Record_End_Date.MD_CP_ID)" >
<FUNCTION_CALL name="previous_row_value"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Sort_For_Record_End_Date" column="MD_CP_ID" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="Sort_For_Record_End_Date.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="Sort_For_Record_End_Date" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Sort_For_Record_End_Date" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Calc_Dates"/>
<DIAttribute name="ui_display_name" value="Calc_Peirod_Business_Key"/>
</DIUIOptions>
<DISchema name="Calc_Peirod_Business_Key" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Dates.MD_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Dates.MD_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Dates.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Dates.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Dates.NODE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Dates.POLICY_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COMPLIANCE_STATUS" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Dates.COMPLIANCE_STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_STATUS_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Dates.DATE_STATUS_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_STATUS_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Dates.DATE_STATUS_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Dates.DATE_RECORD_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DURATION" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Dates.DURATION"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_END_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Dates.DATE_RECORD_END_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="to_char(Calc_Dates.DATE_RECORD_START_LOC , 'YYYY-MM-DD')"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Dates.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="Calc_Dates.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="Calc_Dates" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Dates.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="Calc_Dates" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Dates.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Calc_Dates" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Dates.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="Calc_Dates" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Dates.NODE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Calc_Dates" column="NODE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Dates.POLICY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Calc_Dates" column="POLICY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Dates.COMPLIANCE_STATUS" >
<COLUMN_REFERENCE  qualifier1="Calc_Dates" column="COMPLIANCE_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Dates.DATE_STATUS_START_UTC" >
<COLUMN_REFERENCE  qualifier1="Calc_Dates" column="DATE_STATUS_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Dates.DATE_STATUS_START_LOC" >
<COLUMN_REFERENCE  qualifier1="Calc_Dates" column="DATE_STATUS_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Dates.DATE_RECORD_START_LOC" >
<COLUMN_REFERENCE  qualifier1="Calc_Dates" column="DATE_RECORD_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Dates.DURATION" >
<COLUMN_REFERENCE  qualifier1="Calc_Dates" column="DURATION" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Dates.DATE_RECORD_END_LOC" >
<COLUMN_REFERENCE  qualifier1="Calc_Dates" column="DATE_RECORD_END_LOC" />
</DIExpression>
<DIExpression isString="true" expr="to_char(Calc_Dates.DATE_RECORD_START_LOC, 'YYYY-MM-DD')" >
<FUNCTION_CALL name="to_char"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Calc_Dates" column="DATE_RECORD_START_LOC" />
<CONSTANT value="YYYY-MM-DD" datatype="VARCHAR" size="10" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="Calc_Dates.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="Calc_Dates" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Calc_Dates" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Table_Comparison" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="TC_SSNP"/>
</DIUIOptions>
<DIInputView name="Sort_by_Business_key"  />
<DISchema name="SA_COMPLIANCE_STATUS_SSNP" >
</DISchema>
<DIAttributes>
<DIAttribute name="cache_comparison_table" value="no"/>
<DIAttribute name="database_datastore" value="SRCSTAGING_DS"/>
<DIAttribute name="detect_all_dup_deletes" value="no"/>
<DIAttribute name="detect_delete" value="no"/>
<DIAttribute name="primary_key_column1" value="MD_BUSINESS_KEY"/>
<DIAttribute name="primary_key_column2" value="MD_CP_ID"/>
<DIAttribute name="run_as_separate_process" value="no"/>
<DIAttribute name="source_is_sorted" value="yes"/>
<DIAttribute name="table_name" value="SA_COMPLIANCE_STATUS_SSNP"/>
<DIAttribute name="table_owner" value="SRCSTAGING_ALIAS"/>
<DIAttribute name="update_cache" value="no"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_INSERT_TO_NORMAL"/>
</DIUIOptions>
<DIInputView name="SA_COMPLIANCE_STATUS_SSNP"  />
<DISchema name="MO_INSERT_TO_NORMAL" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="normal"/>
<DIAttribute name="normal" value="discard"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_UPDATE_TO_NORMAL"/>
</DIUIOptions>
<DIInputView name="SA_COMPLIANCE_STATUS_SSNP"  />
<DISchema name="MO_UPDATE_TO_NORMAL" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="discard"/>
<DIAttribute name="update" value="normal"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="MO_INSERT_TO_NORMAL"/>
<DIAttribute name="ui_display_name" value="Query_Insert"/>
</DIUIOptions>
<DISchema name="Query_Insert" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_FLAG_NEW"/>
</DIAttributes>
</DIElement>
<DIElement name="COMPLIANCE_STATUS" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MO_INSERT_TO_NORMAL.COMPLIANCE_STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MO_INSERT_TO_NORMAL.POLICY_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MO_INSERT_TO_NORMAL.PERIOD_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MO_INSERT_TO_NORMAL.NODE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_BUSINESS_KEY" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MO_INSERT_TO_NORMAL.PERIOD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MO_INSERT_TO_NORMAL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MO_INSERT_TO_NORMAL.DATE_RECORD_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_STATUS_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MO_INSERT_TO_NORMAL.DATE_STATUS_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MO_INSERT_TO_NORMAL.POLICY_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MO_INSERT_TO_NORMAL.NODE_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_STATUS_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MO_INSERT_TO_NORMAL.DATE_STATUS_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MO_INSERT_TO_NORMAL.DATE_RECORD_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DURATION" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MO_INSERT_TO_NORMAL.DURATION"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MO_INSERT_TO_NORMAL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="200" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MO_INSERT_TO_NORMAL.MD_QUALIFIER"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_FLAG_NEW" >
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</DIExpression>
<DIExpression isString="true" expr="MO_INSERT_TO_NORMAL.COMPLIANCE_STATUS" >
<COLUMN_REFERENCE  qualifier1="MO_INSERT_TO_NORMAL" column="COMPLIANCE_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="MO_INSERT_TO_NORMAL.POLICY_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="MO_INSERT_TO_NORMAL" column="POLICY_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="MO_INSERT_TO_NORMAL.PERIOD_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="MO_INSERT_TO_NORMAL" column="PERIOD_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="MO_INSERT_TO_NORMAL.NODE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="MO_INSERT_TO_NORMAL" column="NODE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="MO_INSERT_TO_NORMAL.PERIOD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="MO_INSERT_TO_NORMAL" column="PERIOD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="MO_INSERT_TO_NORMAL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="MO_INSERT_TO_NORMAL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="MO_INSERT_TO_NORMAL.DATE_RECORD_START_LOC" >
<COLUMN_REFERENCE  qualifier1="MO_INSERT_TO_NORMAL" column="DATE_RECORD_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="MO_INSERT_TO_NORMAL.DATE_STATUS_START_UTC" >
<COLUMN_REFERENCE  qualifier1="MO_INSERT_TO_NORMAL" column="DATE_STATUS_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="MO_INSERT_TO_NORMAL.POLICY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="MO_INSERT_TO_NORMAL" column="POLICY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="MO_INSERT_TO_NORMAL.NODE_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="MO_INSERT_TO_NORMAL" column="NODE_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="MO_INSERT_TO_NORMAL.DATE_STATUS_START_LOC" >
<COLUMN_REFERENCE  qualifier1="MO_INSERT_TO_NORMAL" column="DATE_STATUS_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="MO_INSERT_TO_NORMAL.DATE_RECORD_START_UTC" >
<COLUMN_REFERENCE  qualifier1="MO_INSERT_TO_NORMAL" column="DATE_RECORD_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="MO_INSERT_TO_NORMAL.DURATION" >
<COLUMN_REFERENCE  qualifier1="MO_INSERT_TO_NORMAL" column="DURATION" />
</DIExpression>
<DIExpression isString="true" expr="MO_INSERT_TO_NORMAL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="MO_INSERT_TO_NORMAL" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="MO_INSERT_TO_NORMAL.MD_QUALIFIER" >
<COLUMN_REFERENCE  qualifier1="MO_INSERT_TO_NORMAL" column="MD_QUALIFIER" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="MO_INSERT_TO_NORMAL" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="MO_UPDATE_TO_NORMAL"/>
<DIAttribute name="ui_display_name" value="Query_Update"/>
</DIUIOptions>
<DISchema name="Query_Update" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID "/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_FLAG_UPDATE "/>
</DIAttributes>
</DIElement>
<DIElement name="COMPLIANCE_STATUS" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MO_UPDATE_TO_NORMAL.COMPLIANCE_STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MO_UPDATE_TO_NORMAL.POLICY_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MO_UPDATE_TO_NORMAL.PERIOD_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MO_UPDATE_TO_NORMAL.NODE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_BUSINESS_KEY" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MO_UPDATE_TO_NORMAL.PERIOD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MO_UPDATE_TO_NORMAL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MO_UPDATE_TO_NORMAL.DATE_RECORD_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_STATUS_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MO_UPDATE_TO_NORMAL.DATE_STATUS_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MO_UPDATE_TO_NORMAL.POLICY_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MO_UPDATE_TO_NORMAL.NODE_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_STATUS_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MO_UPDATE_TO_NORMAL.DATE_STATUS_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MO_UPDATE_TO_NORMAL.DATE_RECORD_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DURATION" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MO_UPDATE_TO_NORMAL.DURATION"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MO_UPDATE_TO_NORMAL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="200" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MO_UPDATE_TO_NORMAL.MD_QUALIFIER"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_FLAG_UPDATE" >
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</DIExpression>
<DIExpression isString="true" expr="MO_UPDATE_TO_NORMAL.COMPLIANCE_STATUS" >
<COLUMN_REFERENCE  qualifier1="MO_UPDATE_TO_NORMAL" column="COMPLIANCE_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="MO_UPDATE_TO_NORMAL.POLICY_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="MO_UPDATE_TO_NORMAL" column="POLICY_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="MO_UPDATE_TO_NORMAL.PERIOD_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="MO_UPDATE_TO_NORMAL" column="PERIOD_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="MO_UPDATE_TO_NORMAL.NODE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="MO_UPDATE_TO_NORMAL" column="NODE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="MO_UPDATE_TO_NORMAL.PERIOD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="MO_UPDATE_TO_NORMAL" column="PERIOD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="MO_UPDATE_TO_NORMAL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="MO_UPDATE_TO_NORMAL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="MO_UPDATE_TO_NORMAL.DATE_RECORD_START_LOC" >
<COLUMN_REFERENCE  qualifier1="MO_UPDATE_TO_NORMAL" column="DATE_RECORD_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="MO_UPDATE_TO_NORMAL.DATE_STATUS_START_UTC" >
<COLUMN_REFERENCE  qualifier1="MO_UPDATE_TO_NORMAL" column="DATE_STATUS_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="MO_UPDATE_TO_NORMAL.POLICY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="MO_UPDATE_TO_NORMAL" column="POLICY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="MO_UPDATE_TO_NORMAL.NODE_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="MO_UPDATE_TO_NORMAL" column="NODE_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="MO_UPDATE_TO_NORMAL.DATE_STATUS_START_LOC" >
<COLUMN_REFERENCE  qualifier1="MO_UPDATE_TO_NORMAL" column="DATE_STATUS_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="MO_UPDATE_TO_NORMAL.DATE_RECORD_START_UTC" >
<COLUMN_REFERENCE  qualifier1="MO_UPDATE_TO_NORMAL" column="DATE_RECORD_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="MO_UPDATE_TO_NORMAL.DURATION" >
<COLUMN_REFERENCE  qualifier1="MO_UPDATE_TO_NORMAL" column="DURATION" />
</DIExpression>
<DIExpression isString="true" expr="MO_UPDATE_TO_NORMAL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="MO_UPDATE_TO_NORMAL" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="MO_UPDATE_TO_NORMAL.MD_QUALIFIER" >
<COLUMN_REFERENCE  qualifier1="MO_UPDATE_TO_NORMAL" column="MD_QUALIFIER" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="MO_UPDATE_TO_NORMAL" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="Merge_Records"/>
</DIUIOptions>
<DIInputView name="Query_Insert"  />
<DIInputView name="Query_Update"  />
<DISchema name="Merge_Records" >
</DISchema>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Calc_Business_Key"/>
<DIAttribute name="ui_display_name" value="Sort_by_Business_key"/>
</DIUIOptions>
<DISchema name="Sort_by_Business_key" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Business_Key.MD_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Business_Key.MD_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Business_Key.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Business_Key.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Business_Key.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_STATUS_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Business_Key.DATE_STATUS_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_STATUS_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Business_Key.DATE_STATUS_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="COMPLIANCE_STATUS" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Business_Key.COMPLIANCE_STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Business_Key.POLICY_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Business_Key.POLICY_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Business_Key.NODE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Business_Key.NODE_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Business_Key.DATE_RECORD_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Business_Key.DATE_RECORD_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DURATION" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Business_Key.DURATION"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Business_Key.PERIOD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Business_Key.PERIOD_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="200" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Calc_Business_Key.MD_QUALIFIER"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="Calc_Business_Key.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="Calc_Business_Key" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Business_Key.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="Calc_Business_Key" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Business_Key.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Calc_Business_Key" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Business_Key.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="Calc_Business_Key" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Business_Key.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="Calc_Business_Key" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Business_Key.DATE_STATUS_START_LOC" >
<COLUMN_REFERENCE  qualifier1="Calc_Business_Key" column="DATE_STATUS_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Business_Key.DATE_STATUS_START_UTC" >
<COLUMN_REFERENCE  qualifier1="Calc_Business_Key" column="DATE_STATUS_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Business_Key.COMPLIANCE_STATUS" >
<COLUMN_REFERENCE  qualifier1="Calc_Business_Key" column="COMPLIANCE_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Business_Key.POLICY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Calc_Business_Key" column="POLICY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Business_Key.POLICY_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="Calc_Business_Key" column="POLICY_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Business_Key.NODE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Calc_Business_Key" column="NODE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Business_Key.NODE_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="Calc_Business_Key" column="NODE_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Business_Key.DATE_RECORD_START_LOC" >
<COLUMN_REFERENCE  qualifier1="Calc_Business_Key" column="DATE_RECORD_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Business_Key.DATE_RECORD_START_UTC" >
<COLUMN_REFERENCE  qualifier1="Calc_Business_Key" column="DATE_RECORD_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Business_Key.DURATION" >
<COLUMN_REFERENCE  qualifier1="Calc_Business_Key" column="DURATION" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Business_Key.PERIOD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Calc_Business_Key" column="PERIOD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Business_Key.PERIOD_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="Calc_Business_Key" column="PERIOD_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Calc_Business_Key.MD_QUALIFIER" >
<COLUMN_REFERENCE  qualifier1="Calc_Business_Key" column="MD_QUALIFIER" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Calc_Business_Key" />
</DIFrom>
<DIOrderBys>
<DIOrderBy direction="ASC">
<DIExpression isString="true" expr="Calc_Business_Key.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Calc_Business_Key" column="MD_BUSINESS_KEY" />
</DIExpression>
</DIOrderBy>
<DIOrderBy direction="ASC">
<DIExpression isString="true" expr="Calc_Business_Key.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="Calc_Business_Key" column="MD_CP_ID" />
</DIExpression>
</DIOrderBy>
</DIOrderBys>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Merge_Records"/>
<DIAttribute name="ui_display_name" value="Map_Extraction_To_SSI"/>
</DIUIOptions>
<DISchema name="Map_Extraction_To_SSI" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Records.MD_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Records.MD_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Records.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="COMPLIANCE_STATUS" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Records.COMPLIANCE_STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Records.POLICY_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Records.PERIOD_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Records.NODE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_BUSINESS_KEY" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Records.PERIOD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Records.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Records.DATE_RECORD_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_STATUS_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Records.DATE_STATUS_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Records.POLICY_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Records.NODE_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_STATUS_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Records.DATE_STATUS_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Records.DATE_RECORD_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DURATION" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Records.DURATION"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Records.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="200" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Records.MD_QUALIFIER"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="Merge_Records.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="Merge_Records" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Records.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="Merge_Records" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Records.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="Merge_Records" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Records.COMPLIANCE_STATUS" >
<COLUMN_REFERENCE  qualifier1="Merge_Records" column="COMPLIANCE_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Records.POLICY_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="Merge_Records" column="POLICY_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Records.PERIOD_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="Merge_Records" column="PERIOD_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Records.NODE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Merge_Records" column="NODE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Records.PERIOD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Merge_Records" column="PERIOD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Records.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Merge_Records" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Records.DATE_RECORD_START_LOC" >
<COLUMN_REFERENCE  qualifier1="Merge_Records" column="DATE_RECORD_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Records.DATE_STATUS_START_UTC" >
<COLUMN_REFERENCE  qualifier1="Merge_Records" column="DATE_STATUS_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Records.POLICY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Merge_Records" column="POLICY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Records.NODE_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="Merge_Records" column="NODE_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Records.DATE_STATUS_START_LOC" >
<COLUMN_REFERENCE  qualifier1="Merge_Records" column="DATE_STATUS_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Records.DATE_RECORD_START_UTC" >
<COLUMN_REFERENCE  qualifier1="Merge_Records" column="DATE_RECORD_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Records.DURATION" >
<COLUMN_REFERENCE  qualifier1="Merge_Records" column="DURATION" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Records.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="Merge_Records" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Records.MD_QUALIFIER" >
<COLUMN_REFERENCE  qualifier1="Merge_Records" column="MD_QUALIFIER" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Merge_Records" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="SA_POLICY_RESULT_EXT" >
<DIOutputView name="SA_POLICY_RESULT_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

</DITransforms>
<DIAttributes>
<DIAttribute name="Audit" hasNestedXMLTree ="true">
<Audit>
                                <AuditObjects>
                                </AuditObjects>
                                <AuditRules>
                                </AuditRules>
                                <Notifications>
                                  <RaiseException Enabled="true">
                                  </RaiseException>
                                  <Mail Enabled="false">
                                  </Mail>
                                  <Script Enabled="false">
                                  </Script>
                                </Notifications>
                              </Audit>
</DIAttribute>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="SA_NODE_SSI_WF" typeId="2" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This workflow does the mapping from extraction to SSI for the product SM of the entity NODE"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="SINGLEEXTRACTION_PRODUCT_ENTITY_SSI_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 12:38:55"/>
<DIAttribute name="Description" value="This workflow does the mapping from extraction to SSI for the product SA of the entity NODE"/>
</DIProperties>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="the Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="SA_NODE_SSI_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object which contains the script to call the custom start workflow function.  This script opens the metadata records that are part of this process."/>
<DIAttribute name="ui_display_name" value="SA_NODE_SSI_START_SC"/>
<DIAttribute name="ui_script_text" value="ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="SA_NODE_SSI_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object that calls the custom end workflow function.  This script closes the metadata records that are part of this process."/>
<DIAttribute name="ui_display_name" value="SA_NODE_SSI_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The workflow catch object is the end of the TRY/CATCH block in BO DS.  This catch block will contain the script object that calls a custom fail workflow function used to write the metadata for failed jobs."/>
<DIAttribute name="ui_display_name" value="SA_NODE_SSI_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="SA_NODE_SSI_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="SA_NODE_SSI_DF" typeId="1" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DITransforms>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="SA_SERVER_EXT"/>
<DIAttribute name="ui_display_name" value="Map_Extraction_To_SSI"/>
</DIUIOptions>
<DISchema name="Map_Extraction_To_SSI" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_SERVER_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_SERVER_EXT.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_NAME" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_SERVER_EXT.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_ROLE" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="'SERVER'"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_SERVER_EXT.DESCRIPTION"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_MODEL" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_SERVER_EXT.MODEL"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_CREATED_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="UTC_DATE_TO_DW(SOURCE_DATE_TO_UTC(SA_SERVER_EXT.DISCOVEREDDATE,SA_SERVER_EXT.MD_CP_ID ))"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_CREATED_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SOURCE_DATE_TO_UTC(SA_SERVER_EXT.DISCOVEREDDATE,SA_SERVER_EXT.MD_CP_ID)"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_MODIFIED_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="UTC_DATE_TO_DW(SOURCE_DATE_TO_UTC(SA_SERVER_EXT.MODIFIEDDATE,SA_SERVER_EXT.MD_CP_ID))"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_MODIFIED_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SOURCE_DATE_TO_UTC(SA_SERVER_EXT.MODIFIEDDATE,SA_SERVER_EXT.MD_CP_ID)"/>
</DIAttributes>
</DIElement>
<DIElement name="MEMORY_SIZE" datatype="INT" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_SERVER_EXT.MEMORYQUANTITY"/>
</DIAttributes>
</DIElement>
<DIElement name="OS" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_SERVER_EXT.OSVERSION"/>
</DIAttributes>
</DIElement>
<DIElement name="OS_VENDOR" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_SERVER_EXT.OSVERSION"/>
</DIAttributes>
</DIElement>
<DIElement name="VENDOR" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_SERVER_EXT.MANUFACTURE"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_IS_MANAGED" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ifthenelse( SA_SERVER_EXT.MD_FLAG=$G_FLAG_DELETE, 'N', ifthenelse(SA_SERVER_EXT.OPSLIFECYCLE='MANAGED','Y','N'))"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_IS_DROPPED" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ifthenelse( SA_SERVER_EXT.MD_FLAG=$G_FLAG_DELETE,'Y','N')"/>
</DIAttributes>
</DIElement>
<DIElement name="NET_BIOS_NAME" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_SERVER_EXT.NETBIOSNAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SERIAL_NUMBER" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_SERVER_EXT.SERIALNUMBER"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_SERVER_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="200" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_SERVER_EXT.NAME"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="SA_SERVER_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="SA_SERVER_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="SA_SERVER_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="SA_SERVER_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="SA_SERVER_EXT.NAME" >
<COLUMN_REFERENCE  qualifier1="SA_SERVER_EXT" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="'SERVER'" >
<CONSTANT value="SERVER" datatype="VARCHAR" size="6" />
</DIExpression>
<DIExpression isString="true" expr="SA_SERVER_EXT.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="SA_SERVER_EXT" column="DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="SA_SERVER_EXT.MODEL" >
<COLUMN_REFERENCE  qualifier1="SA_SERVER_EXT" column="MODEL" />
</DIExpression>
<DIExpression isString="true" expr="utc_date_to_dw(source_date_to_utc(SA_SERVER_EXT.DISCOVEREDDATE, SA_SERVER_EXT.MD_CP_ID))" >
<FUNCTION_CALL name="utc_date_to_dw"  type="DI" >
<FUNCTION_CALL name="source_date_to_utc"  type="DI" >
<COLUMN_REFERENCE  qualifier1="SA_SERVER_EXT" column="DISCOVEREDDATE" />
<COLUMN_REFERENCE  qualifier1="SA_SERVER_EXT" column="MD_CP_ID" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="source_date_to_utc(SA_SERVER_EXT.DISCOVEREDDATE, SA_SERVER_EXT.MD_CP_ID)" >
<FUNCTION_CALL name="source_date_to_utc"  type="DI" >
<COLUMN_REFERENCE  qualifier1="SA_SERVER_EXT" column="DISCOVEREDDATE" />
<COLUMN_REFERENCE  qualifier1="SA_SERVER_EXT" column="MD_CP_ID" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="utc_date_to_dw(source_date_to_utc(SA_SERVER_EXT.MODIFIEDDATE, SA_SERVER_EXT.MD_CP_ID))" >
<FUNCTION_CALL name="utc_date_to_dw"  type="DI" >
<FUNCTION_CALL name="source_date_to_utc"  type="DI" >
<COLUMN_REFERENCE  qualifier1="SA_SERVER_EXT" column="MODIFIEDDATE" />
<COLUMN_REFERENCE  qualifier1="SA_SERVER_EXT" column="MD_CP_ID" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="source_date_to_utc(SA_SERVER_EXT.MODIFIEDDATE, SA_SERVER_EXT.MD_CP_ID)" >
<FUNCTION_CALL name="source_date_to_utc"  type="DI" >
<COLUMN_REFERENCE  qualifier1="SA_SERVER_EXT" column="MODIFIEDDATE" />
<COLUMN_REFERENCE  qualifier1="SA_SERVER_EXT" column="MD_CP_ID" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="SA_SERVER_EXT.MEMORYQUANTITY" >
<COLUMN_REFERENCE  qualifier1="SA_SERVER_EXT" column="MEMORYQUANTITY" />
</DIExpression>
<DIExpression isString="true" expr="SA_SERVER_EXT.OSVERSION" >
<COLUMN_REFERENCE  qualifier1="SA_SERVER_EXT" column="OSVERSION" />
</DIExpression>
<DIExpression isString="true" expr="SA_SERVER_EXT.OSVERSION" >
<COLUMN_REFERENCE  qualifier1="SA_SERVER_EXT" column="OSVERSION" />
</DIExpression>
<DIExpression isString="true" expr="SA_SERVER_EXT.MANUFACTURE" >
<COLUMN_REFERENCE  qualifier1="SA_SERVER_EXT" column="MANUFACTURE" />
</DIExpression>
<DIExpression isString="true" expr="ifthenelse((SA_SERVER_EXT.MD_FLAG = $G_FLAG_DELETE), 'N', ifthenelse((SA_SERVER_EXT.OPSLIFECYCLE = 'MANAGED'), 'Y', 'N'))" >
<FUNCTION_CALL name="ifthenelse"  type="DI" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="SA_SERVER_EXT" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
<CONSTANT value="N" datatype="VARCHAR" size="1" />
<FUNCTION_CALL name="ifthenelse"  type="DI" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="SA_SERVER_EXT" column="OPSLIFECYCLE" />
<CONSTANT value="MANAGED" datatype="VARCHAR" size="7" />
</LOGICAL_OP>
<CONSTANT value="Y" datatype="VARCHAR" size="1" />
<CONSTANT value="N" datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="ifthenelse((SA_SERVER_EXT.MD_FLAG = $G_FLAG_DELETE), 'Y', 'N')" >
<FUNCTION_CALL name="ifthenelse"  type="DI" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="SA_SERVER_EXT" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
<CONSTANT value="Y" datatype="VARCHAR" size="1" />
<CONSTANT value="N" datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="SA_SERVER_EXT.NETBIOSNAME" >
<COLUMN_REFERENCE  qualifier1="SA_SERVER_EXT" column="NETBIOSNAME" />
</DIExpression>
<DIExpression isString="true" expr="SA_SERVER_EXT.SERIALNUMBER" >
<COLUMN_REFERENCE  qualifier1="SA_SERVER_EXT" column="SERIALNUMBER" />
</DIExpression>
<DIExpression isString="true" expr="SA_SERVER_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="SA_SERVER_EXT" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="SA_SERVER_EXT.NAME" >
<COLUMN_REFERENCE  qualifier1="SA_SERVER_EXT" column="NAME" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="SA_SERVER_EXT" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="SA_SERVER_EXT" >
<DIOutputView name="SA_SERVER_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="SA_NODE_SSI" >
<DIInputView name="Map_Extraction_To_SSI"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit>1000</bulk_ldr_rows_per_commit>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>No</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>no</loader_auto_correct>
<loader_bulk_load>1</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_SA_NODE_SSI.txt</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>truncate</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Audit" hasNestedXMLTree ="true">
<Audit>
              <AuditObjects>
              </AuditObjects>
              <AuditRules>
              </AuditRules>
              <Notifications>
                <RaiseException Enabled="true">
                </RaiseException>
                <Mail Enabled="false">
                </Mail>
                <Script Enabled="false">
                </Script>
              </Notifications>
            </Audit>
</DIAttribute>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="SA_POLICY_SSI_WF" typeId="2" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This workflow does the mapping from extraction to SSI for the product SM of the entity POLICY"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="SINGLEEXTRACTION_PRODUCT_ENTITY_SSI_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 12:38:55"/>
<DIAttribute name="Description" value="This workflow does the mapping from extraction to SSI for the product SA of the entity POLICY"/>
</DIProperties>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="the Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="SA_POLICY_SSI_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object which contains the script to call the custom start workflow function.  This script opens the metadata records that are part of this process."/>
<DIAttribute name="ui_display_name" value="SA_POLICY_SSI_START_SC"/>
<DIAttribute name="ui_script_text" value="ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="SA_POLICY_SSI_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object that calls the custom end workflow function.  This script closes the metadata records that are part of this process."/>
<DIAttribute name="ui_display_name" value="SA_POLICY_SSI_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The workflow catch object is the end of the TRY/CATCH block in BO DS.  This catch block will contain the script object that calls a custom fail workflow function used to write the metadata for failed jobs."/>
<DIAttribute name="ui_display_name" value="SA_POLICY_SSI_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="SA_POLICY_SSI_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="SA_POLICY_SSI_DF" typeId="1" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DITransforms>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Merge"/>
<DIAttribute name="ui_display_name" value="Map_Extraction_To_SSI"/>
<DIAttribute name="ui_where_text" value="Merge.MD_CP_ID is not null"/>
</DIUIOptions>
<DISchema name="Map_Extraction_To_SSI" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_CREATED_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="UTC_DATE_TO_DW(SOURCE_DATE_TO_UTC(Merge.CREATEDDATE,Merge.MD_CP_ID ))&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_CREATED_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SOURCE_DATE_TO_UTC(Merge.CREATEDDATE,Merge.MD_CP_ID )&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_MODIFIED_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="UTC_DATE_TO_DW(SOURCE_DATE_TO_UTC(Merge.MODIFIEDDATE, Merge.MD_CP_ID))&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_MODIFIED_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SOURCE_DATE_TO_UTC(Merge.MODIFIEDDATE, Merge.MD_CP_ID)&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge.DESCRIPTION&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DISPLAY_LABEL" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="NULL&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge.MD_BUSINESS_KEY&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge.MD_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_CATEGORY" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge.CATEGORY&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_DEFINED_BY" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="'Server Automation'&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_NAME" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge.NAME&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_SOURCE" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="NULL&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_STATUS" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="'Active'&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_SUB_CATEGORY" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge.CATEGORY&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge.MD_CP_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="200" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge.MD_BUSINESS_KEY&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="utc_date_to_dw(source_date_to_utc(Merge.CREATEDDATE, Merge.MD_CP_ID))" >
<FUNCTION_CALL name="utc_date_to_dw"  type="DI" >
<FUNCTION_CALL name="source_date_to_utc"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Merge" column="CREATEDDATE" />
<COLUMN_REFERENCE  qualifier1="Merge" column="MD_CP_ID" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="source_date_to_utc(Merge.CREATEDDATE, Merge.MD_CP_ID)" >
<FUNCTION_CALL name="source_date_to_utc"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Merge" column="CREATEDDATE" />
<COLUMN_REFERENCE  qualifier1="Merge" column="MD_CP_ID" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="utc_date_to_dw(source_date_to_utc(Merge.MODIFIEDDATE, Merge.MD_CP_ID))" >
<FUNCTION_CALL name="utc_date_to_dw"  type="DI" >
<FUNCTION_CALL name="source_date_to_utc"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Merge" column="MODIFIEDDATE" />
<COLUMN_REFERENCE  qualifier1="Merge" column="MD_CP_ID" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="source_date_to_utc(Merge.MODIFIEDDATE, Merge.MD_CP_ID)" >
<FUNCTION_CALL name="source_date_to_utc"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Merge" column="MODIFIEDDATE" />
<COLUMN_REFERENCE  qualifier1="Merge" column="MD_CP_ID" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="Merge.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="Merge" column="DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr="Merge.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Merge" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Merge.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="Merge" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="Merge.CATEGORY" >
<COLUMN_REFERENCE  qualifier1="Merge" column="CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="'Server Automation'" >
<CONSTANT value="Server Automation" datatype="VARCHAR" size="17" />
</DIExpression>
<DIExpression isString="true" expr="Merge.NAME" >
<COLUMN_REFERENCE  qualifier1="Merge" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr="'Active'" >
<CONSTANT value="Active" datatype="VARCHAR" size="6" />
</DIExpression>
<DIExpression isString="true" expr="Merge.CATEGORY" >
<COLUMN_REFERENCE  qualifier1="Merge" column="CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="Merge.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="Merge" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="Merge.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Merge" column="MD_BUSINESS_KEY" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Merge" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(Merge.MD_CP_ID IS NOT  NULL )" >
<LOGICAL_OP op="IS NOT NULL">
<COLUMN_REFERENCE  qualifier1="Merge" column="MD_CP_ID" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="SA_POLICY_EXT" >
<DIOutputView name="SA_POLICY_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="SA_POLICY_SSI" >
<DIInputView name="Map_Extraction_To_SSI"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit>1000</bulk_ldr_rows_per_commit>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>No</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>no</loader_auto_correct>
<loader_bulk_load>1</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_SA_POLICY_SSI.txt</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>truncate</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIExcelSource typeID="130" datastoreName="SA_POLICY_SRC" name="SA_POLICY_SRC" >
<DIOutputView name="SA_POLICY_SRC"  />
</DIExcelSource>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_CP_ID"/>
<DIAttribute name="ui_acta_from_schema_1" value="SA_POLICY_SRC"/>
<DIAttribute name="ui_display_name" value="QRY_EXTERNAL_FILE"/>
</DIUIOptions>
<DISchema name="QRY_EXTERNAL_FILE" >
<DIElement name="NAME" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_POLICY_SRC.NAME&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_POLICY_SRC.DESCRIPTION&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="CATEGORY" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_POLICY_SRC.CATEGORY&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="CREATEDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_POLICY_SRC.CREATEDDATE&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MODIFIEDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_POLICY_SRC.MODIFIEDDATE&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_POLICY_SRC.POLICYID || ':' || SA_POLICY_SRC.CATEGORY&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="QRY_CP_ID.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_FLAG_NEW&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="SA_POLICY_SRC.NAME" >
<COLUMN_REFERENCE  qualifier1="SA_POLICY_SRC" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="SA_POLICY_SRC.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="SA_POLICY_SRC" column="DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="SA_POLICY_SRC.CATEGORY" >
<COLUMN_REFERENCE  qualifier1="SA_POLICY_SRC" column="CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="SA_POLICY_SRC.CREATEDDATE" >
<COLUMN_REFERENCE  qualifier1="SA_POLICY_SRC" column="CREATEDDATE" />
</DIExpression>
<DIExpression isString="true" expr="SA_POLICY_SRC.MODIFIEDDATE" >
<COLUMN_REFERENCE  qualifier1="SA_POLICY_SRC" column="MODIFIEDDATE" />
</DIExpression>
<DIExpression isString="true" expr="((SA_POLICY_SRC.POLICYID || ':') || SA_POLICY_SRC.CATEGORY)" >
<CONCAT>
<CONCAT>
<COLUMN_REFERENCE  qualifier1="SA_POLICY_SRC" column="POLICYID" />
<CONSTANT value=":" datatype="VARCHAR" size="1" />
</CONCAT>
<COLUMN_REFERENCE  qualifier1="SA_POLICY_SRC" column="CATEGORY" />
</CONCAT>
</DIExpression>
<DIExpression isString="true" expr="QRY_CP_ID.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="QRY_CP_ID" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_FLAG_NEW" >
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="SA_POLICY_SRC" />
<DITableSpec name="QRY_CP_ID" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIInputView name="QRY_EXT"  />
<DIInputView name="QRY_EXTERNAL_FILE"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="SA_POLICY_SRC_1"/>
<DIAttribute name="ui_acta_from_schema_1" value="SA_POLICY_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_EXT"/>
<DIAttribute name="ui_where_text" value="SA_POLICY_EXT.MD_BUSINESS_KEY&lt;&gt;SA_POLICY_SRC_1.POLICYID||':'||SA_POLICY_SRC_1.CATEGORY&#xD;&#xA;and SA_POLICY_EXT.CATEGORY is not null"/>
</DIUIOptions>
<DISchema name="QRY_EXT" >
<DIElement name="NAME" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_POLICY_EXT.NAME&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_POLICY_EXT.DESCRIPTION&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="CATEGORY" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_POLICY_EXT.CATEGORY&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="CREATEDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_POLICY_EXT.CREATEDDATE&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MODIFIEDDATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_POLICY_EXT.MODIFIEDDATE&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_POLICY_EXT.MD_BUSINESS_KEY&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_POLICY_EXT.MD_CP_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_POLICY_EXT.MD_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="SA_POLICY_EXT.NAME" >
<COLUMN_REFERENCE  qualifier1="SA_POLICY_EXT" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="SA_POLICY_EXT.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="SA_POLICY_EXT" column="DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="SA_POLICY_EXT.CATEGORY" >
<COLUMN_REFERENCE  qualifier1="SA_POLICY_EXT" column="CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="SA_POLICY_EXT.CREATEDDATE" >
<COLUMN_REFERENCE  qualifier1="SA_POLICY_EXT" column="CREATEDDATE" />
</DIExpression>
<DIExpression isString="true" expr="SA_POLICY_EXT.MODIFIEDDATE" >
<COLUMN_REFERENCE  qualifier1="SA_POLICY_EXT" column="MODIFIEDDATE" />
</DIExpression>
<DIExpression isString="true" expr="SA_POLICY_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="SA_POLICY_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="SA_POLICY_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="SA_POLICY_EXT" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="SA_POLICY_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="SA_POLICY_EXT" column="MD_FLAG" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="SA_POLICY_EXT" />
<DITableSpec name="SA_POLICY_SRC_1" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="((SA_POLICY_EXT.MD_BUSINESS_KEY != ((SA_POLICY_SRC_1.POLICYID || ':') || SA_POLICY_SRC_1.CATEGORY)) AND&#xA;   (SA_POLICY_EXT.CATEGORY IS NOT  NULL ))" >
<LOGICAL_OP op="AND">
<LOGICAL_OP op="NE">
<COLUMN_REFERENCE  qualifier1="SA_POLICY_EXT" column="MD_BUSINESS_KEY" />
<CONCAT>
<CONCAT>
<COLUMN_REFERENCE  qualifier1="SA_POLICY_SRC_1" column="POLICYID" />
<CONSTANT value=":" datatype="VARCHAR" size="1" />
</CONCAT>
<COLUMN_REFERENCE  qualifier1="SA_POLICY_SRC_1" column="CATEGORY" />
</CONCAT>
</LOGICAL_OP>
<LOGICAL_OP op="IS NOT NULL">
<COLUMN_REFERENCE  qualifier1="SA_POLICY_EXT" column="CATEGORY" />
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="SA_POLICY_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_CP_ID"/>
</DIUIOptions>
<DISchema name="QRY_CP_ID" >
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_POLICY_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect isDistinct="true">
<DIProjection>
<DIExpression isString="true" expr="SA_POLICY_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="SA_POLICY_EXT" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="SA_POLICY_EXT" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIExcelSource typeID="130" datastoreName="SA_POLICY_SRC" name="SA_POLICY_SRC_1" >
<DIOutputView name="SA_POLICY_SRC_1"  />
</DIExcelSource>

</DITransforms>
<DIAttributes>
<DIAttribute name="Audit" hasNestedXMLTree ="true">
<Audit>
              <AuditObjects>
              </AuditObjects>
              <AuditRules>
              </AuditRules>
              <Notifications>
                <RaiseException Enabled="true">
                </RaiseException>
                <Mail Enabled="false">
                </Mail>
                <Script Enabled="false">
                </Script>
              </Notifications>
            </Audit>
</DIAttribute>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="SA_POLICY_REMEDIATION_SSI_WF" typeId="2" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This workflow does the mapping from extraction to SSI for the product SM of the entity POLICY_REMEDIATION"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="SINGLEEXTRACTION_PRODUCT_ENTITY_SSI_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 12:38:55"/>
<DIAttribute name="Description" value="This workflow does the mapping from extraction to SSI for the product SA of the entity POLICY_REMEDIATION"/>
</DIProperties>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="the Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="SA_POLICY_REMEDIATION_SSI_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object which contains the script to call the custom start workflow function.  This script opens the metadata records that are part of this process."/>
<DIAttribute name="ui_display_name" value="SA_POLICY_REMEDIATION_SSI_START_SC"/>
<DIAttribute name="ui_script_text" value="ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="SA_POLICY_REMEDIATION_SSI_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object that calls the custom end workflow function.  This script closes the metadata records that are part of this process."/>
<DIAttribute name="ui_display_name" value="SA_POLICY_REMEDIATION_SSI_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The workflow catch object is the end of the TRY/CATCH block in BO DS.  This catch block will contain the script object that calls a custom fail workflow function used to write the metadata for failed jobs."/>
<DIAttribute name="ui_display_name" value="SA_POLICY_REMEDIATION_SSI_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="SA_POLICY_REMEDIATION_SSI_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="SA_POLICY_REMEDIATION_SSI_DF" typeId="1" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DITransforms>
<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="SA_POLICY_REMEDIATION_SSI" >
<DIInputView name="Map_Extraction_To_SSI"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit>1000</bulk_ldr_rows_per_commit>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>No</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>no</loader_auto_correct>
<loader_bulk_load>1</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_SA_POLICY_REMEDIATION_SSI.txt</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>truncate</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="SA_JOB_INFO_EXT" >
<DIOutputView name="SA_JOB_INFO_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="UNNAMED"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="SA_JOB_ACTION_EXT" >
<DIOutputView name="SA_JOB_ACTION_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="UNNAMED"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="Merge_Action"/>
</DIUIOptions>
<DIInputView name="Cal_Remediation_Status"  />
<DIInputView name="ReOrg_NoAction"  />
<DISchema name="Merge_Action" >
</DISchema>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="SA_JOB_INFO_EXT"/>
<DIAttribute name="ui_acta_from_schema_1" value="Cal_PolicyPerJob"/>
<DIAttribute name="ui_acta_from_schema_2" value="SA_JOB_ACTION_EXT"/>
<DIAttribute name="ui_acta_from_schema_3" value="Case_PolicyItem_Case_NoPolicyItem"/>
<DIAttribute name="ui_display_name" value="ReOrg_NoAction"/>
<DIAttribute name="ui_where_text" value="(((((SA_JOB_ACTION_EXT.JOBID = SA_JOB_INFO_EXT.JOBID) AND&#xD;&#xA;   (SA_JOB_ACTION_EXT.JOBID = Case_PolicyItem_Case_NoPolicyItem.JOBID)) AND&#xD;&#xA;   (SA_JOB_ACTION_EXT.SERVERID = Case_PolicyItem_Case_NoPolicyItem.SERVERID)) and &#xD;&#xA;   SA_JOB_ACTION_EXT.MD_CP_ID=SA_JOB_INFO_EXT.MD_CP_ID and &#xD;&#xA;   SA_JOB_ACTION_EXT.MD_CP_ID=Case_PolicyItem_Case_NoPolicyItem.MD_CP_ID and &#xD;&#xA;   SA_JOB_ACTION_EXT.MD_CP_ID = Cal_PolicyPerJob.MD_CP_ID and&#xD;&#xA;   (  (SA_JOB_ACTION_EXT.SERVERSTATUS IN (0,1,3,4) OR&#xD;&#xA;   (SA_JOB_ACTION_EXT.SERVERSTATUS IS  NULL ))  )) AND&#xD;&#xA;   (SA_JOB_ACTION_EXT.JOBID = Cal_PolicyPerJob.JOBID))"/>
</DIUIOptions>
<DISchema name="ReOrg_NoAction" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_JOB_ACTION_EXT.MD_BATCH_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_JOB_ACTION_EXT.MD_PROCESS_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="AVG_EXECUTION_TIME" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="date_diff(SA_JOB_INFO_EXT.JOBENDDATE, SA_JOB_INFO_EXT.JOBSTARTDATE, 'S')/60 /cast(Cal_PolicyPerJob.POLICYCOUNT,'decimal(28,7)')&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="COUNT_FAILED_REM_ACTIONS" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="0&#xD;&#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="COUNT_SUCCES_REM_ACTIONS" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="0&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="COUNT_TOTAL_REM_ACTIONS" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="0&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="COUNT_UNKNOWN_REM_ACTIONS" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="0&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_REMEDIATION_END_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="UTC_DATE_TO_DW(SOURCE_DATE_TO_UTC(SA_JOB_INFO_EXT.JOBENDDATE, SA_JOB_INFO_EXT.MD_CP_ID))&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_REMEDIATION_END_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SOURCE_DATE_TO_UTC(SA_JOB_INFO_EXT.JOBENDDATE,SA_JOB_INFO_EXT.MD_CP_ID )&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_REMEDIATION_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="UTC_DATE_TO_DW(SOURCE_DATE_TO_UTC(SA_JOB_INFO_EXT.JOBSTARTDATE,SA_JOB_INFO_EXT.MD_CP_ID))&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_REMEDIATION_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SOURCE_DATE_TO_UTC(SA_JOB_INFO_EXT.JOBSTARTDATE,SA_JOB_INFO_EXT.MD_CP_ID )&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Case_PolicyItem_Case_NoPolicyItem.JOBID||':'||Case_PolicyItem_Case_NoPolicyItem.SERVERID||':'||Case_PolicyItem_Case_NoPolicyItem.POLICYID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_JOB_INFO_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_JOB_ACTION_EXT.MD_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_JOB_ACTION_EXT.SERVERID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="NULL&#xD;&#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Case_PolicyItem_Case_NoPolicyItem.POLICYID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="NULL&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="REM_END_PERIOD_BUSINESS_KEY" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="UTC_DATE_TO_DW(SOURCE_DATE_TO_UTC(SA_JOB_INFO_EXT.JOBENDDATE, SA_JOB_INFO_EXT.MD_CP_ID))&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="REM_END_PERIOD_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="NULL&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="REM_START_PERIOD_BUSINESS_KEY" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="UTC_DATE_TO_DW(SOURCE_DATE_TO_UTC(SA_JOB_INFO_EXT.JOBSTARTDATE,SA_JOB_INFO_EXT.MD_CP_ID))"/>
</DIAttributes>
</DIElement>
<DIElement name="REM_START_PERIOD_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="NULL&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="REMEDIATION_STATUS" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ifthenelse( SA_JOB_ACTION_EXT.SERVERSTATUS is null,ifthenelse( SA_JOB_INFO_EXT.JOBSTATUS=6,'success',ifthenelse( SA_JOB_INFO_EXT.JOBSTATUS=4 or SA_JOB_INFO_EXT.JOBSTATUS=8,'failure','unknown')),&#xD;&#xA;ifthenelse( SA_JOB_ACTION_EXT.SERVERSTATUS=0 or SA_JOB_ACTION_EXT.SERVERSTATUS=4,'failure',&#xD;&#xA;ifthenelse( SA_JOB_ACTION_EXT.SERVERSTATUS=1,'success','unknown')))&#xD;&#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="200" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Case_PolicyItem_Case_NoPolicyItem.JOBID||':'||Case_PolicyItem_Case_NoPolicyItem.SERVERID||':'||Case_PolicyItem_Case_NoPolicyItem.POLICYID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect isDistinct="true">
<DIProjection>
<DIExpression isString="true" expr="SA_JOB_ACTION_EXT.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="SA_JOB_ACTION_EXT" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="SA_JOB_ACTION_EXT.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="SA_JOB_ACTION_EXT" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="((date_diff(SA_JOB_INFO_EXT.JOBENDDATE, SA_JOB_INFO_EXT.JOBSTARTDATE, 'S') / 60) / cast(Cal_PolicyPerJob.POLICYCOUNT, 'decimal(28,7)'))" >
<DIVIDE>
<DIVIDE>
<FUNCTION_CALL name="date_diff"  type="DI" >
<COLUMN_REFERENCE  qualifier1="SA_JOB_INFO_EXT" column="JOBENDDATE" />
<COLUMN_REFERENCE  qualifier1="SA_JOB_INFO_EXT" column="JOBSTARTDATE" />
<CONSTANT value="S" datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
<CONSTANT value="60" datatype="INT" />
</DIVIDE>
<FUNCTION_CALL name="cast"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Cal_PolicyPerJob" column="POLICYCOUNT" />
<CONSTANT value="decimal(28,7)" datatype="VARCHAR" size="13" />
</FUNCTION_CALL>
</DIVIDE>
</DIExpression>
<DIExpression isString="true" expr="0" >
<CONSTANT value="0" datatype="INT" />
</DIExpression>
<DIExpression isString="true" expr="0" >
<CONSTANT value="0" datatype="INT" />
</DIExpression>
<DIExpression isString="true" expr="0" >
<CONSTANT value="0" datatype="INT" />
</DIExpression>
<DIExpression isString="true" expr="0" >
<CONSTANT value="0" datatype="INT" />
</DIExpression>
<DIExpression isString="true" expr="utc_date_to_dw(source_date_to_utc(SA_JOB_INFO_EXT.JOBENDDATE, SA_JOB_INFO_EXT.MD_CP_ID))" >
<FUNCTION_CALL name="utc_date_to_dw"  type="DI" >
<FUNCTION_CALL name="source_date_to_utc"  type="DI" >
<COLUMN_REFERENCE  qualifier1="SA_JOB_INFO_EXT" column="JOBENDDATE" />
<COLUMN_REFERENCE  qualifier1="SA_JOB_INFO_EXT" column="MD_CP_ID" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="source_date_to_utc(SA_JOB_INFO_EXT.JOBENDDATE, SA_JOB_INFO_EXT.MD_CP_ID)" >
<FUNCTION_CALL name="source_date_to_utc"  type="DI" >
<COLUMN_REFERENCE  qualifier1="SA_JOB_INFO_EXT" column="JOBENDDATE" />
<COLUMN_REFERENCE  qualifier1="SA_JOB_INFO_EXT" column="MD_CP_ID" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="utc_date_to_dw(source_date_to_utc(SA_JOB_INFO_EXT.JOBSTARTDATE, SA_JOB_INFO_EXT.MD_CP_ID))" >
<FUNCTION_CALL name="utc_date_to_dw"  type="DI" >
<FUNCTION_CALL name="source_date_to_utc"  type="DI" >
<COLUMN_REFERENCE  qualifier1="SA_JOB_INFO_EXT" column="JOBSTARTDATE" />
<COLUMN_REFERENCE  qualifier1="SA_JOB_INFO_EXT" column="MD_CP_ID" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="source_date_to_utc(SA_JOB_INFO_EXT.JOBSTARTDATE, SA_JOB_INFO_EXT.MD_CP_ID)" >
<FUNCTION_CALL name="source_date_to_utc"  type="DI" >
<COLUMN_REFERENCE  qualifier1="SA_JOB_INFO_EXT" column="JOBSTARTDATE" />
<COLUMN_REFERENCE  qualifier1="SA_JOB_INFO_EXT" column="MD_CP_ID" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="((((Case_PolicyItem_Case_NoPolicyItem.JOBID || ':') || Case_PolicyItem_Case_NoPolicyItem.SERVERID) || ':') || Case_PolicyItem_Case_NoPolicyItem.POLICYID)" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<COLUMN_REFERENCE  qualifier1="Case_PolicyItem_Case_NoPolicyItem" column="JOBID" />
<CONSTANT value=":" datatype="VARCHAR" size="1" />
</CONCAT>
<COLUMN_REFERENCE  qualifier1="Case_PolicyItem_Case_NoPolicyItem" column="SERVERID" />
</CONCAT>
<CONSTANT value=":" datatype="VARCHAR" size="1" />
</CONCAT>
<COLUMN_REFERENCE  qualifier1="Case_PolicyItem_Case_NoPolicyItem" column="POLICYID" />
</CONCAT>
</DIExpression>
<DIExpression isString="true" expr="SA_JOB_INFO_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="SA_JOB_INFO_EXT" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="SA_JOB_ACTION_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="SA_JOB_ACTION_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="SA_JOB_ACTION_EXT.SERVERID" >
<COLUMN_REFERENCE  qualifier1="SA_JOB_ACTION_EXT" column="SERVERID" />
</DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr="Case_PolicyItem_Case_NoPolicyItem.POLICYID" >
<COLUMN_REFERENCE  qualifier1="Case_PolicyItem_Case_NoPolicyItem" column="POLICYID" />
</DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr="utc_date_to_dw(source_date_to_utc(SA_JOB_INFO_EXT.JOBENDDATE, SA_JOB_INFO_EXT.MD_CP_ID))" >
<FUNCTION_CALL name="utc_date_to_dw"  type="DI" >
<FUNCTION_CALL name="source_date_to_utc"  type="DI" >
<COLUMN_REFERENCE  qualifier1="SA_JOB_INFO_EXT" column="JOBENDDATE" />
<COLUMN_REFERENCE  qualifier1="SA_JOB_INFO_EXT" column="MD_CP_ID" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr="utc_date_to_dw(source_date_to_utc(SA_JOB_INFO_EXT.JOBSTARTDATE, SA_JOB_INFO_EXT.MD_CP_ID))" >
<FUNCTION_CALL name="utc_date_to_dw"  type="DI" >
<FUNCTION_CALL name="source_date_to_utc"  type="DI" >
<COLUMN_REFERENCE  qualifier1="SA_JOB_INFO_EXT" column="JOBSTARTDATE" />
<COLUMN_REFERENCE  qualifier1="SA_JOB_INFO_EXT" column="MD_CP_ID" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr="ifthenelse((SA_JOB_ACTION_EXT.SERVERSTATUS IS  NULL ), ifthenelse((SA_JOB_INFO_EXT.JOBSTATUS = 6), 'success', ifthenelse(((SA_JOB_INFO_EXT.JOBSTATUS = 4) OR&#xA;   (SA_JOB_INFO_EXT.JOBSTATUS = 8)), 'failure', 'unknown')), ifthenelse(((SA_JOB_ACTION_EXT.SERVERSTATUS = 0) OR&#xA;   (SA_JOB_ACTION_EXT.SERVERSTATUS = 4)), 'failure', ifthenelse((SA_JOB_ACTION_EXT.SERVERSTATUS = 1), 'success', 'unknown')))" >
<FUNCTION_CALL name="ifthenelse"  type="DI" >
<LOGICAL_OP op="IS NULL">
<COLUMN_REFERENCE  qualifier1="SA_JOB_ACTION_EXT" column="SERVERSTATUS" />
</LOGICAL_OP>
<FUNCTION_CALL name="ifthenelse"  type="DI" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="SA_JOB_INFO_EXT" column="JOBSTATUS" />
<CONSTANT value="6" datatype="INT" />
</LOGICAL_OP>
<CONSTANT value="success" datatype="VARCHAR" size="7" />
<FUNCTION_CALL name="ifthenelse"  type="DI" >
<LOGICAL_OP op="OR">
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="SA_JOB_INFO_EXT" column="JOBSTATUS" />
<CONSTANT value="4" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="SA_JOB_INFO_EXT" column="JOBSTATUS" />
<CONSTANT value="8" datatype="INT" />
</LOGICAL_OP>
</LOGICAL_OP>
<CONSTANT value="failure" datatype="VARCHAR" size="7" />
<CONSTANT value="unknown" datatype="VARCHAR" size="7" />
</FUNCTION_CALL>
</FUNCTION_CALL>
<FUNCTION_CALL name="ifthenelse"  type="DI" >
<LOGICAL_OP op="OR">
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="SA_JOB_ACTION_EXT" column="SERVERSTATUS" />
<CONSTANT value="0" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="SA_JOB_ACTION_EXT" column="SERVERSTATUS" />
<CONSTANT value="4" datatype="INT" />
</LOGICAL_OP>
</LOGICAL_OP>
<CONSTANT value="failure" datatype="VARCHAR" size="7" />
<FUNCTION_CALL name="ifthenelse"  type="DI" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="SA_JOB_ACTION_EXT" column="SERVERSTATUS" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<CONSTANT value="success" datatype="VARCHAR" size="7" />
<CONSTANT value="unknown" datatype="VARCHAR" size="7" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="((((Case_PolicyItem_Case_NoPolicyItem.JOBID || ':') || Case_PolicyItem_Case_NoPolicyItem.SERVERID) || ':') || Case_PolicyItem_Case_NoPolicyItem.POLICYID)" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<COLUMN_REFERENCE  qualifier1="Case_PolicyItem_Case_NoPolicyItem" column="JOBID" />
<CONSTANT value=":" datatype="VARCHAR" size="1" />
</CONCAT>
<COLUMN_REFERENCE  qualifier1="Case_PolicyItem_Case_NoPolicyItem" column="SERVERID" />
</CONCAT>
<CONSTANT value=":" datatype="VARCHAR" size="1" />
</CONCAT>
<COLUMN_REFERENCE  qualifier1="Case_PolicyItem_Case_NoPolicyItem" column="POLICYID" />
</CONCAT>
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="SA_JOB_INFO_EXT" />
<DITableSpec name="Cal_PolicyPerJob" />
<DITableSpec name="SA_JOB_ACTION_EXT" />
<DITableSpec name="Case_PolicyItem_Case_NoPolicyItem" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="((((((((SA_JOB_ACTION_EXT.JOBID = SA_JOB_INFO_EXT.JOBID) AND&#xA;   (SA_JOB_ACTION_EXT.JOBID = Case_PolicyItem_Case_NoPolicyItem.JOBID)) AND&#xA;   (SA_JOB_ACTION_EXT.SERVERID = Case_PolicyItem_Case_NoPolicyItem.SERVERID)) AND&#xA;   (SA_JOB_ACTION_EXT.MD_CP_ID = SA_JOB_INFO_EXT.MD_CP_ID)) AND&#xA;   (SA_JOB_ACTION_EXT.MD_CP_ID = Case_PolicyItem_Case_NoPolicyItem.MD_CP_ID)) AND&#xA;   (SA_JOB_ACTION_EXT.MD_CP_ID = Cal_PolicyPerJob.MD_CP_ID)) AND&#xA;   (  (SA_JOB_ACTION_EXT.SERVERSTATUS IN (0,1,3,4) OR&#xA;   (SA_JOB_ACTION_EXT.SERVERSTATUS IS  NULL ))  )) AND&#xA;   (SA_JOB_ACTION_EXT.JOBID = Cal_PolicyPerJob.JOBID))" >
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="SA_JOB_ACTION_EXT" column="JOBID" />
<COLUMN_REFERENCE  qualifier1="SA_JOB_INFO_EXT" column="JOBID" />
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="SA_JOB_ACTION_EXT" column="JOBID" />
<COLUMN_REFERENCE  qualifier1="Case_PolicyItem_Case_NoPolicyItem" column="JOBID" />
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="SA_JOB_ACTION_EXT" column="SERVERID" />
<COLUMN_REFERENCE  qualifier1="Case_PolicyItem_Case_NoPolicyItem" column="SERVERID" />
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="SA_JOB_ACTION_EXT" column="MD_CP_ID" />
<COLUMN_REFERENCE  qualifier1="SA_JOB_INFO_EXT" column="MD_CP_ID" />
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="SA_JOB_ACTION_EXT" column="MD_CP_ID" />
<COLUMN_REFERENCE  qualifier1="Case_PolicyItem_Case_NoPolicyItem" column="MD_CP_ID" />
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="SA_JOB_ACTION_EXT" column="MD_CP_ID" />
<COLUMN_REFERENCE  qualifier1="Cal_PolicyPerJob" column="MD_CP_ID" />
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="IN">
<COLUMN_REFERENCE  qualifier1="SA_JOB_ACTION_EXT" column="SERVERSTATUS" />
<IN_LIST>
<CONSTANT value="0" datatype="INT" />
<CONSTANT value="0" datatype="INT" />
<CONSTANT value="1" datatype="INT" />
<CONSTANT value="1" datatype="INT" />
<CONSTANT value="3" datatype="INT" />
<CONSTANT value="3" datatype="INT" />
<CONSTANT value="4" datatype="INT" />
<CONSTANT value="4" datatype="INT" />
</IN_LIST>
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<COLUMN_REFERENCE  qualifier1="SA_JOB_ACTION_EXT" column="SERVERSTATUS" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="SA_JOB_ACTION_EXT" column="JOBID" />
<COLUMN_REFERENCE  qualifier1="Cal_PolicyPerJob" column="JOBID" />
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="SA_JOB_INFO_EXT"/>
<DIAttribute name="ui_acta_from_schema_1" value="Cal_PolicyPerJob"/>
<DIAttribute name="ui_acta_from_schema_2" value="Query_countAction"/>
<DIAttribute name="ui_display_name" value="ReOrg_HasAction1"/>
<DIAttribute name="ui_where_text" value="Cal_PolicyPerJob.JOBID=Query_countAction.JOBID and&#xD;&#xA;Query_countAction.JOBID = SA_JOB_INFO_EXT.JOBID and &#xD;&#xA;Cal_PolicyPerJob.MD_CP_ID = Query_countAction.MD_CP_ID and &#xD;&#xA;Query_countAction.MD_CP_ID = SA_JOB_INFO_EXT.MD_CP_ID"/>
</DIUIOptions>
<DISchema name="ReOrg_HasAction1" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID &#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID &#xD;&#xA; &#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="AVG_EXECUTION_TIME" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="date_diff( SA_JOB_INFO_EXT.JOBENDDATE,SA_JOB_INFO_EXT.JOBSTARTDATE,'S')/60/cast(Cal_PolicyPerJob.POLICYCOUNT,'decimal(28,7)')&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="COUNT_FAILED_REM_ACTIONS" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_countAction.COUNT_FAILED_REM_ACTIONS&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="COUNT_SUCCES_REM_ACTIONS" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_countAction.COUNT_SUCCESS_REM_ACTIONS&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="COUNT_TOTAL_REM_ACTIONS" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_countAction.COUNT_TOTAL_REM_ACTIONS&#xD;&#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="COUNT_UNKNOWN_REM_ACTIONS" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_countAction.COUNT_UNKNOWN_REM_ACTIONS&#xD;&#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_REMEDIATION_END_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="UTC_DATE_TO_DW(SOURCE_DATE_TO_UTC(Query_countAction.DATE_REMEDIATION_END, Query_countAction.MD_CP_ID ))&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_REMEDIATION_END_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SOURCE_DATE_TO_UTC(Query_countAction.DATE_REMEDIATION_END,  Query_countAction.MD_CP_ID)&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_REMEDIATION_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="UTC_DATE_TO_DW(SOURCE_DATE_TO_UTC(Query_countAction.DATE_REMEDIATION_START,  Query_countAction.MD_CP_ID))&#xD;&#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_REMEDIATION_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SOURCE_DATE_TO_UTC(Query_countAction.DATE_REMEDIATION_START,  Query_countAction.MD_CP_ID)&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_countAction.JOBID||':'||Query_countAction.SERVERID||':'||Query_countAction.POLICYID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_JOB_INFO_EXT.MD_CP_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_JOB_INFO_EXT.MD_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_countAction.SERVERID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="NULL&#xD;&#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_countAction.POLICYID&#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="NULL&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="REM_END_PERIOD_BUSINESS_KEY" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="UTC_DATE_TO_DW(SOURCE_DATE_TO_UTC(Query_countAction.DATE_REMEDIATION_END,  Query_countAction.MD_CP_ID))&#xD;&#xA; &#xD;&#xA;&#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="REM_END_PERIOD_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="NULL&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="REM_START_PERIOD_BUSINESS_KEY" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="UTC_DATE_TO_DW(SOURCE_DATE_TO_UTC(Query_countAction.DATE_REMEDIATION_START, Query_countAction.MD_CP_ID))&#xD;&#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="REM_START_PERIOD_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="NULL&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="JOBSTATUS" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="JOBSTATUS"/>
<DIAttribute name="ui_mapping_text" value="SA_JOB_INFO_EXT.JOBSTATUS&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="200" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_countAction.JOBID||':'||Query_countAction.SERVERID||':'||Query_countAction.POLICYID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect isDistinct="true">
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="((date_diff(SA_JOB_INFO_EXT.JOBENDDATE, SA_JOB_INFO_EXT.JOBSTARTDATE, 'S') / 60) / cast(Cal_PolicyPerJob.POLICYCOUNT, 'decimal(28,7)'))" >
<DIVIDE>
<DIVIDE>
<FUNCTION_CALL name="date_diff"  type="DI" >
<COLUMN_REFERENCE  qualifier1="SA_JOB_INFO_EXT" column="JOBENDDATE" />
<COLUMN_REFERENCE  qualifier1="SA_JOB_INFO_EXT" column="JOBSTARTDATE" />
<CONSTANT value="S" datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
<CONSTANT value="60" datatype="INT" />
</DIVIDE>
<FUNCTION_CALL name="cast"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Cal_PolicyPerJob" column="POLICYCOUNT" />
<CONSTANT value="decimal(28,7)" datatype="VARCHAR" size="13" />
</FUNCTION_CALL>
</DIVIDE>
</DIExpression>
<DIExpression isString="true" expr="Query_countAction.COUNT_FAILED_REM_ACTIONS" >
<COLUMN_REFERENCE  qualifier1="Query_countAction" column="COUNT_FAILED_REM_ACTIONS" />
</DIExpression>
<DIExpression isString="true" expr="Query_countAction.COUNT_SUCCESS_REM_ACTIONS" >
<COLUMN_REFERENCE  qualifier1="Query_countAction" column="COUNT_SUCCESS_REM_ACTIONS" />
</DIExpression>
<DIExpression isString="true" expr="Query_countAction.COUNT_TOTAL_REM_ACTIONS" >
<COLUMN_REFERENCE  qualifier1="Query_countAction" column="COUNT_TOTAL_REM_ACTIONS" />
</DIExpression>
<DIExpression isString="true" expr="Query_countAction.COUNT_UNKNOWN_REM_ACTIONS" >
<COLUMN_REFERENCE  qualifier1="Query_countAction" column="COUNT_UNKNOWN_REM_ACTIONS" />
</DIExpression>
<DIExpression isString="true" expr="utc_date_to_dw(source_date_to_utc(Query_countAction.DATE_REMEDIATION_END, Query_countAction.MD_CP_ID))" >
<FUNCTION_CALL name="utc_date_to_dw"  type="DI" >
<FUNCTION_CALL name="source_date_to_utc"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Query_countAction" column="DATE_REMEDIATION_END" />
<COLUMN_REFERENCE  qualifier1="Query_countAction" column="MD_CP_ID" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="source_date_to_utc(Query_countAction.DATE_REMEDIATION_END, Query_countAction.MD_CP_ID)" >
<FUNCTION_CALL name="source_date_to_utc"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Query_countAction" column="DATE_REMEDIATION_END" />
<COLUMN_REFERENCE  qualifier1="Query_countAction" column="MD_CP_ID" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="utc_date_to_dw(source_date_to_utc(Query_countAction.DATE_REMEDIATION_START, Query_countAction.MD_CP_ID))" >
<FUNCTION_CALL name="utc_date_to_dw"  type="DI" >
<FUNCTION_CALL name="source_date_to_utc"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Query_countAction" column="DATE_REMEDIATION_START" />
<COLUMN_REFERENCE  qualifier1="Query_countAction" column="MD_CP_ID" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="source_date_to_utc(Query_countAction.DATE_REMEDIATION_START, Query_countAction.MD_CP_ID)" >
<FUNCTION_CALL name="source_date_to_utc"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Query_countAction" column="DATE_REMEDIATION_START" />
<COLUMN_REFERENCE  qualifier1="Query_countAction" column="MD_CP_ID" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="((((Query_countAction.JOBID || ':') || Query_countAction.SERVERID) || ':') || Query_countAction.POLICYID)" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<COLUMN_REFERENCE  qualifier1="Query_countAction" column="JOBID" />
<CONSTANT value=":" datatype="VARCHAR" size="1" />
</CONCAT>
<COLUMN_REFERENCE  qualifier1="Query_countAction" column="SERVERID" />
</CONCAT>
<CONSTANT value=":" datatype="VARCHAR" size="1" />
</CONCAT>
<COLUMN_REFERENCE  qualifier1="Query_countAction" column="POLICYID" />
</CONCAT>
</DIExpression>
<DIExpression isString="true" expr="SA_JOB_INFO_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="SA_JOB_INFO_EXT" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="SA_JOB_INFO_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="SA_JOB_INFO_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="Query_countAction.SERVERID" >
<COLUMN_REFERENCE  qualifier1="Query_countAction" column="SERVERID" />
</DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr="Query_countAction.POLICYID" >
<COLUMN_REFERENCE  qualifier1="Query_countAction" column="POLICYID" />
</DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr="utc_date_to_dw(source_date_to_utc(Query_countAction.DATE_REMEDIATION_END, Query_countAction.MD_CP_ID))" >
<FUNCTION_CALL name="utc_date_to_dw"  type="DI" >
<FUNCTION_CALL name="source_date_to_utc"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Query_countAction" column="DATE_REMEDIATION_END" />
<COLUMN_REFERENCE  qualifier1="Query_countAction" column="MD_CP_ID" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr="utc_date_to_dw(source_date_to_utc(Query_countAction.DATE_REMEDIATION_START, Query_countAction.MD_CP_ID))" >
<FUNCTION_CALL name="utc_date_to_dw"  type="DI" >
<FUNCTION_CALL name="source_date_to_utc"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Query_countAction" column="DATE_REMEDIATION_START" />
<COLUMN_REFERENCE  qualifier1="Query_countAction" column="MD_CP_ID" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr="SA_JOB_INFO_EXT.JOBSTATUS" >
<COLUMN_REFERENCE  qualifier1="SA_JOB_INFO_EXT" column="JOBSTATUS" />
</DIExpression>
<DIExpression isString="true" expr="((((Query_countAction.JOBID || ':') || Query_countAction.SERVERID) || ':') || Query_countAction.POLICYID)" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<COLUMN_REFERENCE  qualifier1="Query_countAction" column="JOBID" />
<CONSTANT value=":" datatype="VARCHAR" size="1" />
</CONCAT>
<COLUMN_REFERENCE  qualifier1="Query_countAction" column="SERVERID" />
</CONCAT>
<CONSTANT value=":" datatype="VARCHAR" size="1" />
</CONCAT>
<COLUMN_REFERENCE  qualifier1="Query_countAction" column="POLICYID" />
</CONCAT>
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Query_countAction" />
<DITableSpec name="SA_JOB_INFO_EXT" />
<DITableSpec name="Cal_PolicyPerJob" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="((((Cal_PolicyPerJob.JOBID = Query_countAction.JOBID) AND&#xA;   (Query_countAction.JOBID = SA_JOB_INFO_EXT.JOBID)) AND&#xA;   (Cal_PolicyPerJob.MD_CP_ID = Query_countAction.MD_CP_ID)) AND&#xA;   (Query_countAction.MD_CP_ID = SA_JOB_INFO_EXT.MD_CP_ID))" >
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="Cal_PolicyPerJob" column="JOBID" />
<COLUMN_REFERENCE  qualifier1="Query_countAction" column="JOBID" />
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="Query_countAction" column="JOBID" />
<COLUMN_REFERENCE  qualifier1="SA_JOB_INFO_EXT" column="JOBID" />
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="Cal_PolicyPerJob" column="MD_CP_ID" />
<COLUMN_REFERENCE  qualifier1="Query_countAction" column="MD_CP_ID" />
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="Query_countAction" column="MD_CP_ID" />
<COLUMN_REFERENCE  qualifier1="SA_JOB_INFO_EXT" column="MD_CP_ID" />
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Query"/>
<DIAttribute name="ui_display_name" value="Query_countAction"/>
</DIUIOptions>
<DISchema name="Query_countAction" >
<DIElement name="JOBID" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query.JOBID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICYID" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query.POLICYID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVERID" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query.SERVERID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="COUNT_UNKNOWN_REM_ACTIONS" datatype="INT" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="sum(ifthenelse(lower(Query.JOBACTIONSTATUS)='error' or lower(Query.JOBACTIONSTATUS)='was_not_installed' or lower(Query.JOBACTIONSTATUS)='was_not_removed' or lower(Query.JOBACTIONSTATUS)='success',0,1))&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="COUNT_SUCCESS_REM_ACTIONS" datatype="INT" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="sum(ifthenelse(lower(Query.JOBACTIONSTATUS)='success',1,0))&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="COUNT_FAILED_REM_ACTIONS" datatype="INT" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="sum(ifthenelse(lower(Query.JOBACTIONSTATUS)='error' or lower(Query.JOBACTIONSTATUS)='was_not_installed' or lower(Query.JOBACTIONSTATUS)='was_not_removed',1,0))&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="COUNT_TOTAL_REM_ACTIONS" datatype="INT" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="sum(ifthenelse(Query.JOBACTIONSTATUS is not null,1,0))&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_REMEDIATION_START" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Min(Query.JOBACTIONSTARTTIME)&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_REMEDIATION_END" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="MAX(Query.JOBACTIONENDTIME)&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="Query.JOBID" >
<COLUMN_REFERENCE  qualifier1="Query" column="JOBID" />
</DIExpression>
<DIExpression isString="true" expr="Query.POLICYID" >
<COLUMN_REFERENCE  qualifier1="Query" column="POLICYID" />
</DIExpression>
<DIExpression isString="true" expr="Query.SERVERID" >
<COLUMN_REFERENCE  qualifier1="Query" column="SERVERID" />
</DIExpression>
<DIExpression isString="true" expr="sum(ifthenelse(((((lower(Query.JOBACTIONSTATUS) = 'error') OR&#xA;   (lower(Query.JOBACTIONSTATUS) = 'was_not_installed')) OR&#xA;   (lower(Query.JOBACTIONSTATUS) = 'was_not_removed')) OR&#xA;   (lower(Query.JOBACTIONSTATUS) = 'success')), 0, 1))" >
<FUNCTION_CALL name="sum"  type="DI" >
<FUNCTION_CALL name="ifthenelse"  type="DI" >
<LOGICAL_OP op="OR">
<LOGICAL_OP op="OR">
<LOGICAL_OP op="OR">
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="lower"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Query" column="JOBACTIONSTATUS" />
</FUNCTION_CALL>
<CONSTANT value="error" datatype="VARCHAR" size="5" />
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="lower"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Query" column="JOBACTIONSTATUS" />
</FUNCTION_CALL>
<CONSTANT value="was_not_installed" datatype="VARCHAR" size="17" />
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="lower"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Query" column="JOBACTIONSTATUS" />
</FUNCTION_CALL>
<CONSTANT value="was_not_removed" datatype="VARCHAR" size="15" />
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="lower"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Query" column="JOBACTIONSTATUS" />
</FUNCTION_CALL>
<CONSTANT value="success" datatype="VARCHAR" size="7" />
</LOGICAL_OP>
</LOGICAL_OP>
<CONSTANT value="0" datatype="INT" />
<CONSTANT value="1" datatype="INT" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="sum(ifthenelse((lower(Query.JOBACTIONSTATUS) = 'success'), 1, 0))" >
<FUNCTION_CALL name="sum"  type="DI" >
<FUNCTION_CALL name="ifthenelse"  type="DI" >
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="lower"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Query" column="JOBACTIONSTATUS" />
</FUNCTION_CALL>
<CONSTANT value="success" datatype="VARCHAR" size="7" />
</LOGICAL_OP>
<CONSTANT value="1" datatype="INT" />
<CONSTANT value="0" datatype="INT" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="sum(ifthenelse((((lower(Query.JOBACTIONSTATUS) = 'error') OR&#xA;   (lower(Query.JOBACTIONSTATUS) = 'was_not_installed')) OR&#xA;   (lower(Query.JOBACTIONSTATUS) = 'was_not_removed')), 1, 0))" >
<FUNCTION_CALL name="sum"  type="DI" >
<FUNCTION_CALL name="ifthenelse"  type="DI" >
<LOGICAL_OP op="OR">
<LOGICAL_OP op="OR">
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="lower"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Query" column="JOBACTIONSTATUS" />
</FUNCTION_CALL>
<CONSTANT value="error" datatype="VARCHAR" size="5" />
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="lower"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Query" column="JOBACTIONSTATUS" />
</FUNCTION_CALL>
<CONSTANT value="was_not_installed" datatype="VARCHAR" size="17" />
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="lower"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Query" column="JOBACTIONSTATUS" />
</FUNCTION_CALL>
<CONSTANT value="was_not_removed" datatype="VARCHAR" size="15" />
</LOGICAL_OP>
</LOGICAL_OP>
<CONSTANT value="1" datatype="INT" />
<CONSTANT value="0" datatype="INT" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="sum(ifthenelse((Query.JOBACTIONSTATUS IS NOT  NULL ), 1, 0))" >
<FUNCTION_CALL name="sum"  type="DI" >
<FUNCTION_CALL name="ifthenelse"  type="DI" >
<LOGICAL_OP op="IS NOT NULL">
<COLUMN_REFERENCE  qualifier1="Query" column="JOBACTIONSTATUS" />
</LOGICAL_OP>
<CONSTANT value="1" datatype="INT" />
<CONSTANT value="0" datatype="INT" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="min(Query.JOBACTIONSTARTTIME)" >
<FUNCTION_CALL name="min"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Query" column="JOBACTIONSTARTTIME" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="max(Query.JOBACTIONENDTIME)" >
<FUNCTION_CALL name="max"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Query" column="JOBACTIONENDTIME" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="Query.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="Query" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Query" />
</DIFrom>
<DIGroupBy>
<DIExpression isString="true" expr="Query.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="Query" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="Query.JOBID" >
<COLUMN_REFERENCE  qualifier1="Query" column="JOBID" />
</DIExpression>
<DIExpression isString="true" expr="Query.SERVERID" >
<COLUMN_REFERENCE  qualifier1="Query" column="SERVERID" />
</DIExpression>
<DIExpression isString="true" expr="Query.POLICYID" >
<COLUMN_REFERENCE  qualifier1="Query" column="POLICYID" />
</DIExpression>
</DIGroupBy>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="SA_JOB_ACTION_EXT"/>
<DIAttribute name="ui_acta_from_schema_1" value="Case_PolicyItem_Case_HasPolicyItem"/>
<DIAttribute name="ui_display_name" value="Query_HasAction"/>
<DIAttribute name="ui_where_text" value="SA_JOB_ACTION_EXT.JOBID=Case_PolicyItem_Case_HasPolicyItem.JOBID and &#xD;&#xA;SA_JOB_ACTION_EXT.SERVERID =Case_PolicyItem_Case_HasPolicyItem.SERVERID and &#xD;&#xA;SA_JOB_ACTION_EXT.JOBACTIONID = Case_PolicyItem_Case_HasPolicyItem.POLICYITEMID and &#xD;&#xA;SA_JOB_ACTION_EXT.MD_CP_ID =Case_PolicyItem_Case_HasPolicyItem.MD_CP_ID"/>
</DIUIOptions>
<DISchema name="Query" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_JOB_ACTION_EXT.MD_BATCH_ID&#xD;&#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_JOB_ACTION_EXT.MD_PROCESS_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="JOBID" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_JOB_ACTION_EXT.JOBID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Case_PolicyItem_Case_HasPolicyItem.MD_BUSINESS_KEY&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_JOB_ACTION_EXT.MD_CP_ID&#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_JOB_ACTION_EXT.MD_FLAG&#xD;&#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_JOB_ACTION_EXT.MD_PF_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICYID" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Case_PolicyItem_Case_HasPolicyItem.POLICYID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVERID" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_JOB_ACTION_EXT.SERVERID&#xD;&#xA;&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="JOBACTIONENDTIME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="JOBACTIONENDTIME"/>
<DIAttribute name="ui_mapping_text" value="SA_JOB_ACTION_EXT.JOBACTIONENDTIME&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="JOBACTIONID" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value="JOBACTIONID"/>
<DIAttribute name="ui_mapping_text" value="SA_JOB_ACTION_EXT.JOBACTIONID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="JOBACTIONSTARTTIME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="JOBACTIONSTARTTIME"/>
<DIAttribute name="ui_mapping_text" value="SA_JOB_ACTION_EXT.JOBACTIONSTARTTIME&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="JOBACTIONSTATUS" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value="JOBACTIONSTATUS"/>
<DIAttribute name="ui_mapping_text" value="SA_JOB_ACTION_EXT.JOBACTIONSTATUS&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="JOBGROUPID" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value="JOBGROUPID"/>
<DIAttribute name="ui_mapping_text" value="SA_JOB_ACTION_EXT.JOBGROUPID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="SA_JOB_ACTION_EXT.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="SA_JOB_ACTION_EXT" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="SA_JOB_ACTION_EXT.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="SA_JOB_ACTION_EXT" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="SA_JOB_ACTION_EXT.JOBID" >
<COLUMN_REFERENCE  qualifier1="SA_JOB_ACTION_EXT" column="JOBID" />
</DIExpression>
<DIExpression isString="true" expr="Case_PolicyItem_Case_HasPolicyItem.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Case_PolicyItem_Case_HasPolicyItem" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="SA_JOB_ACTION_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="SA_JOB_ACTION_EXT" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="SA_JOB_ACTION_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="SA_JOB_ACTION_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="SA_JOB_ACTION_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="SA_JOB_ACTION_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="Case_PolicyItem_Case_HasPolicyItem.POLICYID" >
<COLUMN_REFERENCE  qualifier1="Case_PolicyItem_Case_HasPolicyItem" column="POLICYID" />
</DIExpression>
<DIExpression isString="true" expr="SA_JOB_ACTION_EXT.SERVERID" >
<COLUMN_REFERENCE  qualifier1="SA_JOB_ACTION_EXT" column="SERVERID" />
</DIExpression>
<DIExpression isString="true" expr="SA_JOB_ACTION_EXT.JOBACTIONENDTIME" >
<COLUMN_REFERENCE  qualifier1="SA_JOB_ACTION_EXT" column="JOBACTIONENDTIME" />
</DIExpression>
<DIExpression isString="true" expr="SA_JOB_ACTION_EXT.JOBACTIONID" >
<COLUMN_REFERENCE  qualifier1="SA_JOB_ACTION_EXT" column="JOBACTIONID" />
</DIExpression>
<DIExpression isString="true" expr="SA_JOB_ACTION_EXT.JOBACTIONSTARTTIME" >
<COLUMN_REFERENCE  qualifier1="SA_JOB_ACTION_EXT" column="JOBACTIONSTARTTIME" />
</DIExpression>
<DIExpression isString="true" expr="SA_JOB_ACTION_EXT.JOBACTIONSTATUS" >
<COLUMN_REFERENCE  qualifier1="SA_JOB_ACTION_EXT" column="JOBACTIONSTATUS" />
</DIExpression>
<DIExpression isString="true" expr="SA_JOB_ACTION_EXT.JOBGROUPID" >
<COLUMN_REFERENCE  qualifier1="SA_JOB_ACTION_EXT" column="JOBGROUPID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="SA_JOB_ACTION_EXT" />
<DITableSpec name="Case_PolicyItem_Case_HasPolicyItem" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="((((SA_JOB_ACTION_EXT.JOBID = Case_PolicyItem_Case_HasPolicyItem.JOBID) AND&#xA;   (SA_JOB_ACTION_EXT.SERVERID = Case_PolicyItem_Case_HasPolicyItem.SERVERID)) AND&#xA;   (SA_JOB_ACTION_EXT.JOBACTIONID = Case_PolicyItem_Case_HasPolicyItem.POLICYITEMID)) AND&#xA;   (SA_JOB_ACTION_EXT.MD_CP_ID = Case_PolicyItem_Case_HasPolicyItem.MD_CP_ID))" >
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="SA_JOB_ACTION_EXT" column="JOBID" />
<COLUMN_REFERENCE  qualifier1="Case_PolicyItem_Case_HasPolicyItem" column="JOBID" />
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="SA_JOB_ACTION_EXT" column="SERVERID" />
<COLUMN_REFERENCE  qualifier1="Case_PolicyItem_Case_HasPolicyItem" column="SERVERID" />
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="SA_JOB_ACTION_EXT" column="JOBACTIONID" />
<COLUMN_REFERENCE  qualifier1="Case_PolicyItem_Case_HasPolicyItem" column="POLICYITEMID" />
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="SA_JOB_ACTION_EXT" column="MD_CP_ID" />
<COLUMN_REFERENCE  qualifier1="Case_PolicyItem_Case_HasPolicyItem" column="MD_CP_ID" />
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="ReOrg_HasAction1"/>
<DIAttribute name="ui_display_name" value="Cal_Remediation_Status"/>
</DIUIOptions>
<DISchema name="Cal_Remediation_Status" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ReOrg_HasAction1.MD_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ReOrg_HasAction1.MD_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="AVG_EXECUTION_TIME" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ReOrg_HasAction1.AVG_EXECUTION_TIME"/>
</DIAttributes>
</DIElement>
<DIElement name="COUNT_FAILED_REM_ACTIONS" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ReOrg_HasAction1.COUNT_FAILED_REM_ACTIONS"/>
</DIAttributes>
</DIElement>
<DIElement name="COUNT_SUCCES_REM_ACTIONS" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ReOrg_HasAction1.COUNT_SUCCES_REM_ACTIONS"/>
</DIAttributes>
</DIElement>
<DIElement name="COUNT_TOTAL_REM_ACTIONS" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ReOrg_HasAction1.COUNT_TOTAL_REM_ACTIONS"/>
</DIAttributes>
</DIElement>
<DIElement name="COUNT_UNKNOWN_REM_ACTIONS" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ReOrg_HasAction1.COUNT_UNKNOWN_REM_ACTIONS"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_REMEDIATION_END_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ReOrg_HasAction1.DATE_REMEDIATION_END_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_REMEDIATION_END_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ReOrg_HasAction1.DATE_REMEDIATION_END_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_REMEDIATION_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ReOrg_HasAction1.DATE_REMEDIATION_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_REMEDIATION_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ReOrg_HasAction1.DATE_REMEDIATION_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ReOrg_HasAction1.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ReOrg_HasAction1.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ReOrg_HasAction1.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ReOrg_HasAction1.NODE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ReOrg_HasAction1.NODE_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ReOrg_HasAction1.POLICY_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ReOrg_HasAction1.POLICY_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="REM_END_PERIOD_BUSINESS_KEY" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ReOrg_HasAction1.REM_END_PERIOD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="REM_END_PERIOD_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ReOrg_HasAction1.REM_END_PERIOD_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="REM_START_PERIOD_BUSINESS_KEY" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ReOrg_HasAction1.REM_START_PERIOD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="REM_START_PERIOD_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ReOrg_HasAction1.REM_START_PERIOD_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="REMEDIATION_STATUS" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ifthenelse( ReOrg_HasAction1.COUNT_FAILED_REM_ACTIONS&gt;0,'failure',&#xD;&#xA;ifthenelse( lower(ReOrg_HasAction1.JOBSTATUS)='6' or ReOrg_HasAction1.COUNT_SUCCES_REM_ACTIONS = ReOrg_HasAction1.COUNT_TOTAL_REM_ACTIONS,'success','unknown'))&#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="200" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ReOrg_HasAction1.MD_QUALIFIER"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="ReOrg_HasAction1.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="ReOrg_HasAction1" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="ReOrg_HasAction1.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="ReOrg_HasAction1" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="ReOrg_HasAction1.AVG_EXECUTION_TIME" >
<COLUMN_REFERENCE  qualifier1="ReOrg_HasAction1" column="AVG_EXECUTION_TIME" />
</DIExpression>
<DIExpression isString="true" expr="ReOrg_HasAction1.COUNT_FAILED_REM_ACTIONS" >
<COLUMN_REFERENCE  qualifier1="ReOrg_HasAction1" column="COUNT_FAILED_REM_ACTIONS" />
</DIExpression>
<DIExpression isString="true" expr="ReOrg_HasAction1.COUNT_SUCCES_REM_ACTIONS" >
<COLUMN_REFERENCE  qualifier1="ReOrg_HasAction1" column="COUNT_SUCCES_REM_ACTIONS" />
</DIExpression>
<DIExpression isString="true" expr="ReOrg_HasAction1.COUNT_TOTAL_REM_ACTIONS" >
<COLUMN_REFERENCE  qualifier1="ReOrg_HasAction1" column="COUNT_TOTAL_REM_ACTIONS" />
</DIExpression>
<DIExpression isString="true" expr="ReOrg_HasAction1.COUNT_UNKNOWN_REM_ACTIONS" >
<COLUMN_REFERENCE  qualifier1="ReOrg_HasAction1" column="COUNT_UNKNOWN_REM_ACTIONS" />
</DIExpression>
<DIExpression isString="true" expr="ReOrg_HasAction1.DATE_REMEDIATION_END_LOC" >
<COLUMN_REFERENCE  qualifier1="ReOrg_HasAction1" column="DATE_REMEDIATION_END_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ReOrg_HasAction1.DATE_REMEDIATION_END_UTC" >
<COLUMN_REFERENCE  qualifier1="ReOrg_HasAction1" column="DATE_REMEDIATION_END_UTC" />
</DIExpression>
<DIExpression isString="true" expr="ReOrg_HasAction1.DATE_REMEDIATION_START_LOC" >
<COLUMN_REFERENCE  qualifier1="ReOrg_HasAction1" column="DATE_REMEDIATION_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ReOrg_HasAction1.DATE_REMEDIATION_START_UTC" >
<COLUMN_REFERENCE  qualifier1="ReOrg_HasAction1" column="DATE_REMEDIATION_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="ReOrg_HasAction1.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ReOrg_HasAction1" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ReOrg_HasAction1.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="ReOrg_HasAction1" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="ReOrg_HasAction1.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="ReOrg_HasAction1" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ReOrg_HasAction1.NODE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ReOrg_HasAction1" column="NODE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ReOrg_HasAction1.NODE_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ReOrg_HasAction1" column="NODE_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ReOrg_HasAction1.POLICY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ReOrg_HasAction1" column="POLICY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ReOrg_HasAction1.POLICY_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ReOrg_HasAction1" column="POLICY_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ReOrg_HasAction1.REM_END_PERIOD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ReOrg_HasAction1" column="REM_END_PERIOD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ReOrg_HasAction1.REM_END_PERIOD_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ReOrg_HasAction1" column="REM_END_PERIOD_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ReOrg_HasAction1.REM_START_PERIOD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ReOrg_HasAction1" column="REM_START_PERIOD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ReOrg_HasAction1.REM_START_PERIOD_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ReOrg_HasAction1" column="REM_START_PERIOD_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ifthenelse((ReOrg_HasAction1.COUNT_FAILED_REM_ACTIONS &gt; 0), 'failure', ifthenelse(((lower(ReOrg_HasAction1.JOBSTATUS) = '6') OR&#xA;   (ReOrg_HasAction1.COUNT_SUCCES_REM_ACTIONS = ReOrg_HasAction1.COUNT_TOTAL_REM_ACTIONS)), 'success', 'unknown'))" >
<FUNCTION_CALL name="ifthenelse"  type="DI" >
<LOGICAL_OP op="GT">
<COLUMN_REFERENCE  qualifier1="ReOrg_HasAction1" column="COUNT_FAILED_REM_ACTIONS" />
<CONSTANT value="0" datatype="INT" />
</LOGICAL_OP>
<CONSTANT value="failure" datatype="VARCHAR" size="7" />
<FUNCTION_CALL name="ifthenelse"  type="DI" >
<LOGICAL_OP op="OR">
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="lower"  type="DI" >
<COLUMN_REFERENCE  qualifier1="ReOrg_HasAction1" column="JOBSTATUS" />
</FUNCTION_CALL>
<CONSTANT value="6" datatype="VARCHAR" size="1" />
</LOGICAL_OP>
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="ReOrg_HasAction1" column="COUNT_SUCCES_REM_ACTIONS" />
<COLUMN_REFERENCE  qualifier1="ReOrg_HasAction1" column="COUNT_TOTAL_REM_ACTIONS" />
</LOGICAL_OP>
</LOGICAL_OP>
<CONSTANT value="success" datatype="VARCHAR" size="7" />
<CONSTANT value="unknown" datatype="VARCHAR" size="7" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="ReOrg_HasAction1.MD_QUALIFIER" >
<COLUMN_REFERENCE  qualifier1="ReOrg_HasAction1" column="MD_QUALIFIER" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="ReOrg_HasAction1" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Query_1"/>
<DIAttribute name="ui_display_name" value="Cal_PolicyPerJob"/>
</DIUIOptions>
<DISchema name="Cal_PolicyPerJob" >
<DIElement name="JOBID" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_1.JOBID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICYCOUNT" datatype="INT" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="count(Query_1.POLICYID)&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Query_1.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="Query_1.JOBID" >
<COLUMN_REFERENCE  qualifier1="Query_1" column="JOBID" />
</DIExpression>
<DIExpression isString="true" expr="count(Query_1.POLICYID)" >
<FUNCTION_CALL name="count"  type="DI" >
<COLUMN_REFERENCE  qualifier1="Query_1" column="POLICYID" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="Query_1.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="Query_1" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Query_1" />
</DIFrom>
<DIGroupBy>
<DIExpression isString="true" expr="Query_1.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="Query_1" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="Query_1.JOBID" >
<COLUMN_REFERENCE  qualifier1="Query_1" column="JOBID" />
</DIExpression>
</DIGroupBy>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="SA_JOB_POLICY_ITEM_EXT" >
<DIOutputView name="SA_JOB_POLICY_ITEM_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>


<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="Case_PolicyItem_Case_HasPolicyItem" value="SA_JOB_POLICY_ITEM_EXT.POLICYITEMID&lt;&gt;0"/>
<DIAttribute name="Case_PolicyItem_Case_NoPolicyItem" value="SA_JOB_POLICY_ITEM_EXT.POLICYITEMID=0"/>
<DIAttribute name="ui_acta_from_schema_0" value="SA_JOB_POLICY_ITEM_EXT"/>
<DIAttribute name="ui_display_name" value="Case_PolicyItem"/>
</DIUIOptions>
<DIInputView name="SA_JOB_POLICY_ITEM_EXT" />
<DISchema name="Case_PolicyItem" >
</DISchema>
<DICase>
<DISwitch label="Case_NoPolicyItem" outputView="Case_PolicyItem_Case_NoPolicyItem" isDefault="false">
<DIExpression isString="true" expr="(SA_JOB_POLICY_ITEM_EXT.POLICYITEMID = 0)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="SA_JOB_POLICY_ITEM_EXT" column="POLICYITEMID" />
<CONSTANT value="0" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="Case_HasPolicyItem" outputView="Case_PolicyItem_Case_HasPolicyItem" isDefault="false">
<DIExpression isString="true" expr="(SA_JOB_POLICY_ITEM_EXT.POLICYITEMID != 0)" >
<LOGICAL_OP op="NE">
<COLUMN_REFERENCE  qualifier1="SA_JOB_POLICY_ITEM_EXT" column="POLICYITEMID" />
<CONSTANT value="0" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="SA_JOB_POLICY_ITEM_EXT"/>
</DIUIOptions>
<DISchema name="Query_1" >
<DIElement name="JOBID" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_JOB_POLICY_ITEM_EXT.JOBID"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVERID" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_JOB_POLICY_ITEM_EXT.SERVERID"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICYID" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_JOB_POLICY_ITEM_EXT.POLICYID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_JOB_POLICY_ITEM_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect isDistinct="true">
<DIProjection>
<DIExpression isString="true" expr="SA_JOB_POLICY_ITEM_EXT.JOBID" >
<COLUMN_REFERENCE  qualifier1="SA_JOB_POLICY_ITEM_EXT" column="JOBID" />
</DIExpression>
<DIExpression isString="true" expr="SA_JOB_POLICY_ITEM_EXT.SERVERID" >
<COLUMN_REFERENCE  qualifier1="SA_JOB_POLICY_ITEM_EXT" column="SERVERID" />
</DIExpression>
<DIExpression isString="true" expr="SA_JOB_POLICY_ITEM_EXT.POLICYID" >
<COLUMN_REFERENCE  qualifier1="SA_JOB_POLICY_ITEM_EXT" column="POLICYID" />
</DIExpression>
<DIExpression isString="true" expr="SA_JOB_POLICY_ITEM_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="SA_JOB_POLICY_ITEM_EXT" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="SA_JOB_POLICY_ITEM_EXT" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="Merge_Action"/>
<DIAttribute name="ui_display_name" value="Map_Extraction_To_SSI"/>
</DIUIOptions>
<DISchema name="Map_Extraction_To_SSI" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Action.MD_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Action.MD_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="AVG_EXECUTION_TIME" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Action.AVG_EXECUTION_TIME"/>
</DIAttributes>
</DIElement>
<DIElement name="REMEDIATION_STATUS" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Action.REMEDIATION_STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_REMEDIATION_END_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Action.DATE_REMEDIATION_END_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Action.NODE_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COUNT_UNKNOWN_REM_ACTIONS" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Action.COUNT_UNKNOWN_REM_ACTIONS"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Action.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_REMEDIATION_END_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Action.DATE_REMEDIATION_END_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="COUNT_FAILED_REM_ACTIONS" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Action.COUNT_FAILED_REM_ACTIONS"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_REMEDIATION_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Action.DATE_REMEDIATION_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="REM_START_PERIOD_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Action.REM_START_PERIOD_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Action.POLICY_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="REM_END_PERIOD_BUSINESS_KEY" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Action.REM_END_PERIOD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_REMEDIATION_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Action.DATE_REMEDIATION_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Action.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="200" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Action.MD_QUALIFIER"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Action.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Action.POLICY_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COUNT_TOTAL_REM_ACTIONS" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Action.COUNT_TOTAL_REM_ACTIONS"/>
</DIAttributes>
</DIElement>
<DIElement name="COUNT_SUCCES_REM_ACTIONS" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Action.COUNT_SUCCES_REM_ACTIONS"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Action.NODE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="REM_END_PERIOD_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Action.REM_END_PERIOD_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="REM_START_PERIOD_BUSINESS_KEY" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="Merge_Action.REM_START_PERIOD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="Merge_Action.MD_BATCH_ID" >
<COLUMN_REFERENCE  qualifier1="Merge_Action" column="MD_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Action.MD_PROCESS_ID" >
<COLUMN_REFERENCE  qualifier1="Merge_Action" column="MD_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Action.AVG_EXECUTION_TIME" >
<COLUMN_REFERENCE  qualifier1="Merge_Action" column="AVG_EXECUTION_TIME" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Action.REMEDIATION_STATUS" >
<COLUMN_REFERENCE  qualifier1="Merge_Action" column="REMEDIATION_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Action.DATE_REMEDIATION_END_LOC" >
<COLUMN_REFERENCE  qualifier1="Merge_Action" column="DATE_REMEDIATION_END_LOC" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Action.NODE_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="Merge_Action" column="NODE_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Action.COUNT_UNKNOWN_REM_ACTIONS" >
<COLUMN_REFERENCE  qualifier1="Merge_Action" column="COUNT_UNKNOWN_REM_ACTIONS" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Action.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="Merge_Action" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Action.DATE_REMEDIATION_END_UTC" >
<COLUMN_REFERENCE  qualifier1="Merge_Action" column="DATE_REMEDIATION_END_UTC" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Action.COUNT_FAILED_REM_ACTIONS" >
<COLUMN_REFERENCE  qualifier1="Merge_Action" column="COUNT_FAILED_REM_ACTIONS" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Action.DATE_REMEDIATION_START_LOC" >
<COLUMN_REFERENCE  qualifier1="Merge_Action" column="DATE_REMEDIATION_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Action.REM_START_PERIOD_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="Merge_Action" column="REM_START_PERIOD_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Action.POLICY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Merge_Action" column="POLICY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Action.REM_END_PERIOD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Merge_Action" column="REM_END_PERIOD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Action.DATE_REMEDIATION_START_UTC" >
<COLUMN_REFERENCE  qualifier1="Merge_Action" column="DATE_REMEDIATION_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Action.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="Merge_Action" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Action.MD_QUALIFIER" >
<COLUMN_REFERENCE  qualifier1="Merge_Action" column="MD_QUALIFIER" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Action.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Merge_Action" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Action.POLICY_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="Merge_Action" column="POLICY_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Action.COUNT_TOTAL_REM_ACTIONS" >
<COLUMN_REFERENCE  qualifier1="Merge_Action" column="COUNT_TOTAL_REM_ACTIONS" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Action.COUNT_SUCCES_REM_ACTIONS" >
<COLUMN_REFERENCE  qualifier1="Merge_Action" column="COUNT_SUCCES_REM_ACTIONS" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Action.NODE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Merge_Action" column="NODE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Action.REM_END_PERIOD_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="Merge_Action" column="REM_END_PERIOD_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="Merge_Action.REM_START_PERIOD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="Merge_Action" column="REM_START_PERIOD_BUSINESS_KEY" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="Merge_Action" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

</DITransforms>
<DIAttributes>
<DIAttribute name="Audit" hasNestedXMLTree ="true">
<Audit>
<AuditObjects>
</AuditObjects>
<AuditRules>
</AuditRules>
<Notifications>
<RaiseException Enabled="true">
</RaiseException>
<Mail Enabled="false"/>
<Script Enabled="false"/>
</Notifications>
</Audit>
</DIAttribute>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="SA_POLICY_RESULT_SSI_WF" typeId="2" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This workflow does the mapping from extraction to SSI for the product SM of the entity POLICY_RESULT"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="SINGLEEXTRACTION_PRODUCT_ENTITY_SSI_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 12:38:55"/>
<DIAttribute name="Description" value="This workflow does the mapping from extraction to SSI for the product SA of the entity POLICY_RESULT"/>
</DIProperties>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="the Try of the Try / Catch Block"/>
<DIAttribute name="ui_display_name" value="SA_POLICY_RESULT_SSI_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object which contains the script to call the custom start workflow function.  This script opens the metadata records that are part of this process."/>
<DIAttribute name="ui_display_name" value="SA_POLICY_RESULT_SSI_START_SC"/>
<DIAttribute name="ui_script_text" value="ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="SA_POLICY_RESULT_SSI_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The workflow script object that calls the custom end workflow function.  This script closes the metadata records that are part of this process."/>
<DIAttribute name="ui_display_name" value="SA_POLICY_RESULT_SSI_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The workflow catch object is the end of the TRY/CATCH block in BO DS.  This catch block will contain the script object that calls a custom fail workflow function used to write the metadata for failed jobs."/>
<DIAttribute name="ui_display_name" value="SA_POLICY_RESULT_SSI_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="SA_POLICY_RESULT_SSI_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="SA_POLICY_RESULT_SSI_DF" typeId="1" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DITransforms>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="SA_POLICY_RESULT_EXT"/>
<DIAttribute name="ui_display_name" value="Map_Extraction_To_SSI"/>
</DIUIOptions>
<DISchema name="Map_Extraction_To_SSI" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_QUALIFIER" datatype="VARCHAR" size="200" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_POLICY_RESULT_EXT.MD_BUSINESS_KEY || ':' || 'Audit'"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_POLICY_RESULT_EXT.MD_BUSINESS_KEY || ':' || 'Audit'"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_POLICY_RESULT_EXT.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="COMPLIANCE_STATUS" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ifthenelse( SA_POLICY_RESULT_EXT.TARGETSTATUS = 'Compliant', 'compliant', 'in_breach')"/>
</DIAttributes>
</DIElement>
<DIElement name="COUNT_RULES_COMPLIANT" datatype="INT" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_POLICY_RESULT_EXT.RULESPASSEDCOUNT"/>
</DIAttributes>
</DIElement>
<DIElement name="COUNT_RULES_NON_COMPLIANT" datatype="INT" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_POLICY_RESULT_EXT.RULESFAILEDCOUNT"/>
</DIAttributes>
</DIElement>
<DIElement name="COUNT_TOTAL_RULES" datatype="INT" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_POLICY_RESULT_EXT.RULESRUNCOUNT"/>
</DIAttributes>
</DIElement>
<DIElement name="AVG_EXECUTION_TIME" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ifthenelse( SA_POLICY_RESULT_EXT.TARGETCOUNT = 0, cast(0, 'decimal(28,7)'), date_diff(ENDDATE, STARTDATE, 'S') / 60 / cast(SA_POLICY_RESULT_EXT.TARGETCOUNT,'decimal(28,7)'))"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RESULT_COMPUTED_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="UTC_DATE_TO_DW(SOURCE_DATE_TO_UTC(SA_POLICY_RESULT_EXT.ENDDATE, SA_POLICY_RESULT_EXT.MD_CP_ID))"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RESULT_COMPUTED_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SOURCE_DATE_TO_UTC(SA_POLICY_RESULT_EXT.ENDDATE,SA_POLICY_RESULT_EXT.MD_CP_ID )"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_BUSINESS_KEY" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="UTC_DATE_TO_DW(SOURCE_DATE_TO_UTC(SA_POLICY_RESULT_EXT.ENDDATE, SA_POLICY_RESULT_EXT.MD_CP_ID))"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="NULL"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_POLICY_RESULT_EXT.POLICYID || ':' || 'Audit'"/>
</DIAttributes>
</DIElement>
<DIElement name="POLICY_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="NULL"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_POLICY_RESULT_EXT.TARGETSERVERID"/>
</DIAttributes>
</DIElement>
<DIElement name="NODE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="NULL"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="SA_POLICY_RESULT_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="((SA_POLICY_RESULT_EXT.MD_BUSINESS_KEY || ':') || 'Audit')" >
<CONCAT>
<CONCAT>
<COLUMN_REFERENCE  qualifier1="SA_POLICY_RESULT_EXT" column="MD_BUSINESS_KEY" />
<CONSTANT value=":" datatype="VARCHAR" size="1" />
</CONCAT>
<CONSTANT value="Audit" datatype="VARCHAR" size="5" />
</CONCAT>
</DIExpression>
<DIExpression isString="true" expr="((SA_POLICY_RESULT_EXT.MD_BUSINESS_KEY || ':') || 'Audit')" >
<CONCAT>
<CONCAT>
<COLUMN_REFERENCE  qualifier1="SA_POLICY_RESULT_EXT" column="MD_BUSINESS_KEY" />
<CONSTANT value=":" datatype="VARCHAR" size="1" />
</CONCAT>
<CONSTANT value="Audit" datatype="VARCHAR" size="5" />
</CONCAT>
</DIExpression>
<DIExpression isString="true" expr="SA_POLICY_RESULT_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="SA_POLICY_RESULT_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ifthenelse((SA_POLICY_RESULT_EXT.TARGETSTATUS = 'Compliant'), 'compliant', 'in_breach')" >
<FUNCTION_CALL name="ifthenelse"  type="DI" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="SA_POLICY_RESULT_EXT" column="TARGETSTATUS" />
<CONSTANT value="Compliant" datatype="VARCHAR" size="9" />
</LOGICAL_OP>
<CONSTANT value="compliant" datatype="VARCHAR" size="9" />
<CONSTANT value="in_breach" datatype="VARCHAR" size="9" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="SA_POLICY_RESULT_EXT.RULESPASSEDCOUNT" >
<COLUMN_REFERENCE  qualifier1="SA_POLICY_RESULT_EXT" column="RULESPASSEDCOUNT" />
</DIExpression>
<DIExpression isString="true" expr="SA_POLICY_RESULT_EXT.RULESFAILEDCOUNT" >
<COLUMN_REFERENCE  qualifier1="SA_POLICY_RESULT_EXT" column="RULESFAILEDCOUNT" />
</DIExpression>
<DIExpression isString="true" expr="SA_POLICY_RESULT_EXT.RULESRUNCOUNT" >
<COLUMN_REFERENCE  qualifier1="SA_POLICY_RESULT_EXT" column="RULESRUNCOUNT" />
</DIExpression>
<DIExpression isString="true" expr="ifthenelse((SA_POLICY_RESULT_EXT.TARGETCOUNT = 0), cast(0, 'decimal(28,7)'), ((date_diff(ENDDATE, STARTDATE, 'S') / 60) / cast(SA_POLICY_RESULT_EXT.TARGETCOUNT, 'decimal(28,7)')))" >
<FUNCTION_CALL name="ifthenelse"  type="DI" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="SA_POLICY_RESULT_EXT" column="TARGETCOUNT" />
<CONSTANT value="0" datatype="INT" />
</LOGICAL_OP>
<FUNCTION_CALL name="cast"  type="DI" >
<CONSTANT value="0" datatype="INT" />
<CONSTANT value="decimal(28,7)" datatype="VARCHAR" size="13" />
</FUNCTION_CALL>
<DIVIDE>
<DIVIDE>
<FUNCTION_CALL name="date_diff"  type="DI" >
<COLUMN_REFERENCE  column="ENDDATE" />
<COLUMN_REFERENCE  column="STARTDATE" />
<CONSTANT value="S" datatype="VARCHAR" size="1" />
</FUNCTION_CALL>
<CONSTANT value="60" datatype="INT" />
</DIVIDE>
<FUNCTION_CALL name="cast"  type="DI" >
<COLUMN_REFERENCE  qualifier1="SA_POLICY_RESULT_EXT" column="TARGETCOUNT" />
<CONSTANT value="decimal(28,7)" datatype="VARCHAR" size="13" />
</FUNCTION_CALL>
</DIVIDE>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="utc_date_to_dw(source_date_to_utc(SA_POLICY_RESULT_EXT.ENDDATE, SA_POLICY_RESULT_EXT.MD_CP_ID))" >
<FUNCTION_CALL name="utc_date_to_dw"  type="DI" >
<FUNCTION_CALL name="source_date_to_utc"  type="DI" >
<COLUMN_REFERENCE  qualifier1="SA_POLICY_RESULT_EXT" column="ENDDATE" />
<COLUMN_REFERENCE  qualifier1="SA_POLICY_RESULT_EXT" column="MD_CP_ID" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="source_date_to_utc(SA_POLICY_RESULT_EXT.ENDDATE, SA_POLICY_RESULT_EXT.MD_CP_ID)" >
<FUNCTION_CALL name="source_date_to_utc"  type="DI" >
<COLUMN_REFERENCE  qualifier1="SA_POLICY_RESULT_EXT" column="ENDDATE" />
<COLUMN_REFERENCE  qualifier1="SA_POLICY_RESULT_EXT" column="MD_CP_ID" />
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr="utc_date_to_dw(source_date_to_utc(SA_POLICY_RESULT_EXT.ENDDATE, SA_POLICY_RESULT_EXT.MD_CP_ID))" >
<FUNCTION_CALL name="utc_date_to_dw"  type="DI" >
<FUNCTION_CALL name="source_date_to_utc"  type="DI" >
<COLUMN_REFERENCE  qualifier1="SA_POLICY_RESULT_EXT" column="ENDDATE" />
<COLUMN_REFERENCE  qualifier1="SA_POLICY_RESULT_EXT" column="MD_CP_ID" />
</FUNCTION_CALL>
</FUNCTION_CALL>
</DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr="((SA_POLICY_RESULT_EXT.POLICYID || ':') || 'Audit')" >
<CONCAT>
<CONCAT>
<COLUMN_REFERENCE  qualifier1="SA_POLICY_RESULT_EXT" column="POLICYID" />
<CONSTANT value=":" datatype="VARCHAR" size="1" />
</CONCAT>
<CONSTANT value="Audit" datatype="VARCHAR" size="5" />
</CONCAT>
</DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr="SA_POLICY_RESULT_EXT.TARGETSERVERID" >
<COLUMN_REFERENCE  qualifier1="SA_POLICY_RESULT_EXT" column="TARGETSERVERID" />
</DIExpression>
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
<DIExpression isString="true" expr="SA_POLICY_RESULT_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="SA_POLICY_RESULT_EXT" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="SA_POLICY_RESULT_EXT" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="SA_POLICY_RESULT_EXT" >
<DIOutputView name="SA_POLICY_RESULT_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="SA_POLICY_RESULT_SSI" >
<DIInputView name="Map_Extraction_To_SSI"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit>1000</bulk_ldr_rows_per_commit>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>No</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>no</loader_auto_correct>
<loader_bulk_load>1</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_SA_POLICY_RESULT_SSI.txt</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>truncate</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Audit" hasNestedXMLTree ="true">
<Audit>
                  <AuditObjects>
                  </AuditObjects>
                  <AuditRules>
                  </AuditRules>
                  <Notifications>
                    <RaiseException Enabled="true">
                    </RaiseException>
                    <Mail Enabled="false">
                    </Mail>
                    <Script Enabled="false">
                    </Script>
                  </Notifications>
                </Audit>
</DIAttribute>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="SA_SSI_CUSTOM_CONT_WF" typeId="2" >
<DISteps>
<DIParallelStep typeId="11" >
<DISteps>
</DISteps>
</DIParallelStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>

</DataIntegratorExport>

